How can I disable workspace trust in VS Code 1.57?

Before disabling trusted workspaces entirely, make sure you understand what trusted workspaces are and why they can be helpful.

Disabling workspace trust entirely

If you still want to disable trusted workspaces, use the Security › Workspace › Trust: Enabled setting:

"": false

This will go back to the behavior in VS Code 1.56.

Disabling the workspace trust prompt

If you just want to disable the prompt that shows when opening a new workspace, set:

"": "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

Maintaining a trusted folder for project

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:

  1. Run the Workspaces: Manage Workspace Trust command (Hit F1 in VS Code and search for this).
  2. Scroll down to the Trusted folders and workspaces section and click Add Folder
  3. Select the parent folder of all your trusted workspaces

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

Leave a Comment