什么是 VS Code 状态栏中的“受限模式",如何禁用它? [英] What is 'Restricted mode' in the VS Code status bar and how can I disable it?

查看:212
本文介绍了什么是 VS Code 状态栏中的“受限模式",如何禁用它?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 VS Code 1.57 中,我在状态栏的左侧看到了这个:

什么是受限模式以及如何将其从状态栏中删除?

解决方案

Restricted mode 表示您当前正在

请注意,这只会隐藏状态栏条目,不会更改工作区的受信任状态.这个答案 详细介绍了工作区信任、如何信任工作区(也会删除状态栏条目)以及如何在需要时完全禁用工作区信任

即使在禁用 Restricted Mode 状态栏条目后,您始终可以使用 Workspace:Manage Workspace Trust 命令信任工作区

In VS Code 1.57, I see this on the left of my status bar:

What is Restricted mode and how I can I remove this from my status bar?

解决方案

Restricted mode means that you are currently working in an untrusted workspace ('restricted mode'). In 'restricted mode', some editor features (debugging, tasks, some extensions) are disabled to keep you safe when dealing with a project from an unknown source.

To disable the Restricted mode status bar entry:

  1. Right click in the status bar
  2. Uncheck the workspace trust entry

Note that this only hides the status bar entry, it does not change the trusted state of the workspace. This answer covers more details on workspace trust, how to trust a workspace (which also removes the status bar entry), and how to disable workspace trust entirely if needed

Even after disabling the Restricted Mode status bar entry, you can always trust the workspace with the Workspace: Manage Workspace Trust command

这篇关于什么是 VS Code 状态栏中的“受限模式",如何禁用它?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆