vscode
vscode copied to clipboard
Disable autosave or save outside project folder
I use autosave and find this feature very handy, but it has a very annoying effect when using it. When I use "Go to Definition" (F12)" vscode opens files outside of my project, such as standard library codes. If I change and save them (it's easy to do it by accident if autosave is enabled), this will not be displayed in the history of my project. But, when i will run my project, it may be cause unexpected errors and it will be hard to find a reason. I think reasonable to make option for disable (or require additional confirmation) autosave on files outside project folder. I'm use vscode for python, it doesn't really matter in this case, but maybe the context will make it easier to understand.
This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!
yay 20
:slightly_smiling_face: This feature request received a sufficient number of community upvotes and we moved it to our backlog. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!
In https://github.com/microsoft/vscode/pull/200326, a new setting files.autoSaveWorkspaceFilesOnly allows this. That PR also addresses https://github.com/microsoft/vscode/issues/181942, so the setting can be workspace and language overwritten.
This can now be tested in our insiders build: You can give our preview releases a try from: https://code.visualstudio.com/insiders/
Yes, the behavior is as I originally expected, thank you. I'm waiting for it to be released.
Kind of sort of related: #184698.