Reputation: 22560
I am on version 1.30.0 , how can i fix the annoying question: do you want to save changes? I am using git so that takes care of my files already.
Upvotes: 2
Views: 2436
Reputation: 3052
Use the menu "File" > "Exit" (Ctrl+Q), instead of the X icon (of the program window)
Upvotes: 0
Reputation: 8556
If you want code
to autosave, you must turn it on in your settings.
You can open settings going to File/Preferences
in windows or Code/Preferences
in Mac.
To turn on autosave, search for the option "Auto Save" or the write "files.autoSave": "afterDelay"
in you settings.json
file. You should also take a look at the option "Prompt to save files before commit", or "git.promptToSaveFilesBeforeCommit": false
in the file.
Upvotes: 5
Reputation: 1174
when another program changed something in your file, vscode has another text not like in real file that git changed it previously so it asked you to save for new
Upvotes: -1