How to save the entire project using Visual Studio Code

1

Alright?

I'm using Visual Studio Code, and when I make change in three files, I have to go from file to file to save each one individually.

Is there a command in Visual Studio Code to save all the project at once?

    
asked by anonymous 05.12.2017 / 19:22

2 answers

2

There is another option, which would be to set the " Auto Save " of VS Code. So your files will always be saved without any command

Go to File > Preferences > Settings and then search for "auto save"

Intheoption'onFocusChange'forexampleanywhereyouclickoutsidethewindowitwillsaveitself,includingchangingfromonetabtoanother.

Ifyouchoose" afterDelay " it defaults to every 1000 ms, but you can configure it as in the example below.

"files.autoSave": "afterDelay",
"files.autoSaveDelay": 500,
  

The advantage of this method is that if you close the program or end the light it will save the information itself.

Official documentation link: link

    
21.12.2017 / 17:32
4

You can enable Auto save > on the File menu.

Also in the File menu you have the Save All option, which would be the shortcut combination Ctrl + K S .

But to work you have to press Ctrl + K , drop Ctrl + K and press S .

The combination Ctrl + K Ctrl + S is to open the Keyboard Shortcuts , here that you can customize the VSCode shortcuts. Try changing the Save All option to something that is easier for you to use.

    
05.12.2017 / 19:25