Saving changes in Visual Studio Code from inside Cloud Shell

Lisa Lownds 66 Reputation points
2022-09-02T10:40:37.977+00:00

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.

Community Center Not monitored
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Anna Xiu-MSFT 31,056 Reputation points Microsoft External Staff
    2022-09-02T13:15:38.027+00:00

    Hi @Lisa Lownds ,

    You are using Visual Studio Code, which is different from Visual Studio. The tag “vs-general” is related to Visual Studio, for more questions about Visual Studio Code, we suggest you post it to the Stack Overview tagged visual-studio-code forum or GitHub repository where you would get professional support for this product.

    Thanks for your understanding.

    Sincerely,
    Anna
    *
    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  2. Rich Matheisen 47,901 Reputation points
    2022-09-05T02:22:14.767+00:00

    Your file looks like mine, and mine works. I have no trouble debugging PowerShell in VS Code.

    Is your lauch.json file in a .vscode directory? Is that .vscode directory in your current project?

    VS Code isn't a Powershell application. You're really better off asking question about that product in a forum dedicated its use. The two links in the previous answer would be a good place to start.

    I've had similar problems and found that either the code being debugged had errors (missing quotes, mismatched braces, brackets, parentheses, etc.), of VS Code just needed to be stopped and restarted.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.