Folks,
Sorry for such a basic question, but I'd like to know how to save changes to JSON files edited in Visual Studio Code that was launched from inside Azure Cloud Shell. I've made changes to a JSON file using the editor, but can't find a way of saying those changes unless I navigate away to another file and then I'm prompted to save my changes. Does anyone have a cheat sheet of useful keystrokes or something?
Lisa.
Related
When I create a script it automatically opens visual studio but I was wondering if there was a way to automatically open the specific script that I just created?
One of the problems is that when you add a new script, it has to add it to the visual project project by regenerating the project. It also triggers Unity to recompile. They should improve this but this is probably why they can't instantly open it.
I believe it should do it automatically. Check if there is a message in Visual Studio above the tab bar that says something about the unity integration gone wrong. It should have a link to a guide on how to set it up properly.
I'm working with a new student who's getting started with Python programming in Visual Studio Code. She's exploring and getting to know programming by feel and using VS Code and kitao/pyxel to learn the ropes. In that project, one creates .pyres files (that are binary/zip files). When that file appeared in the editor, the user clicked on the file, acknowledged the "view this file as text even though it's binary" warning, and then saved it, thereby corrupting the file. And since VS Code and Windows are uncompromising on these sorts of mistakes, all of the work in generating the assets appears to be lost.
Is there any way given a binary file that was opened and re-saved unchanged in VS Code to reverse the changes that VS Code makes to that file? Any insight into what changes VS Code makes to a binary file when opened as text and saved?
I want to create a designer for the code of the current active editor (a tab in VSCode). So I would like to ask you, how this is accomplishable.
In this video the developer is showing impressively that this is possible:
https://www.youtube.com/watch?v=lgPYdtcNRwg
I looked already for the some API's like https://code.visualstudio.com/api/extension-guides/custom-editors, but they all doesn't offer what I want: grab and manipulate existing code of current tab, or maybe I am missing something?
Perhaps I have to think out of the box and work with the file path of current tab/editor, and change the code in files on the filesystem directly?
I am grateful for any hint and help.
I am writing a Visual Studio Code extension for internal use.
The idea is the capture changes on each save of the file and changes made (diff) will be pushed to our server through an API for analysis.
I am trying to find out which VS Code API which can help to capture the diff. Can someone put some light here?
I'm looking for a way to refresh the content of a file opened in editor after it was changed by other tool.
For instance I'm using angular command line which makes changes to files but VS Code doesn't refresh the content after that and I can't see any of that. What's worse when I try to save the file, VS Code by default tries to save the old content upon the newer (asks before of course, but still its not what I'm looking for).
I didn't find any keybindings for refresh the editor's content. Maybe there are any extensions?
Thank you.
It should reload itself automatically, but I had a machine that stopped auto-refreshing. I'd change the file externally (with vim or whatever), and the file I had in the editor wouldn't pop and refresh itself, which it used to do. It turned out to be a git-related extension. I disabled it, and autorefresh returned. If you haven't already, try it with extensions off.