最新版本的vscode 在打开时会提示如下信息

Do you trust the authors of the files in this folder?
Code provides features that may automatically execute files in this folder.

If you don't trust the authors of these files, we recommend to continue in restricted mode as the files may be malicious. See our docs to learn more.

如果点击了不信任,之后你会发现好多插件直接都不能显示了,像open in browser等等,那怎么关闭呢,很简单,打开设置,搜索security.workspace.trust.enabled

关闭启用,重新启动vscode即可

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐