Whenever I open a new folder to edit some code (code .
), opening the settings dialog (⌘+,) immediately creates a directory .vscode
with a mostly empty file settings.json
.
Since there are no workspace-specific settings, the file looks like:
{
}
For the time being, I do not want to have .vscode
directories spread across my filesystem. I am happy with global settings.
Is there a way to disable this behavior and prevent Visual Studio Code from creating these files automatically?
You can open the settings.json file with the Preferences: Open Settings (JSON) command in the Command Palette (Ctrl+Shift+P). Once the file is open in an editor, delete everything between the two curly braces {} , save the file, and VS Code will go back to using the default values.
Command-line switch# You can disable Workspace Trust via the VS Code command line by passing --disable-workspace-trust .
The workspace settings file is located under the . vscode folder in your project.
Currently this isn't an option, but it is an open issue (see here). This post also contains some work-arounds for git projects.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With