什么是 VS Code 状态栏中的“受限模式",如何禁用它? [英] What is 'Restricted mode' in the VS Code status bar and how can I disable it?
问题描述
在 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:
- Right click in the status bar
- 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屋!