I just updated to VS Code 1.57 and am now getting prompted about trusting my workspaces. How can I disable this and go back to the old behavior?
To open the Settings editor, use the following VS Code menu command: On Windows/Linux - File > Preferences > Settings. On macOS - Code > Preferences > Settings.
Before disabling trusted workspaces entirely, make sure you understand what trusted workspaces are and why they can be helpful.
If you still want to disable trusted workspaces, use the Security › Workspace › Trust: Enabled
setting:
"security.workspace.trust.enabled": false
This will go back to the behavior in VS Code 1.56.
If you just want to disable the prompt that shows when opening a new workspace, set:
"security.workspace.trust.startupPrompt": "never"
This will disable the prompt but keep trusted workspaces enabled. Keep in mind that this means that all new workspace will start in untrusted mode
If you work with many projects that you trust and don't want to be prompted about trusting each one individually, you can consider trusting their parent folder. To do this:
Workspaces: Manage Workspace Trust
commandTrusted folders and workspaces
section and click Add Folder
Now any project you open under the parent folder will be trusted automatically. You will still be prompted when opening a workspace outside of the parent fold
This is a good compromise. With it, when cloning a new project you simply choose if it goes into your trusted folder or not
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