VS Code关闭受限模式,关闭信任工作区

编程入门 行业动态 更新时间:2024-10-11 23:27:19

VS Code关闭受限<a href=https://www.elefans.com/category/jswz/34/1771241.html style=模式,关闭信任工作区"/>

VS Code关闭受限模式,关闭信任工作区

打开VS code每次出现这个界面,烦戳死!今天,贷款也要把它关掉!

1、打开设置:

2、搜索以下值

security.workspace.trust

3、重新启动VS Code即可!

4、或者直接在用户的设置文件 settings.json中加入以下:

"security.workspace.trust.enabled": false

5、这是本人的settings.json配置

{"workbench.iconTheme": "vscode-icons","editor.codeActionsOnSave": {},"files.associations": {"*.vue": "vue","*.wpy": "vue","*.wxml": "html","*.wxss": "css"},"git.enableSmartCommit": true,"git.autofetch": true,"emmet.triggerExpansionOnTab": true,"emmet.showAbbreviationSuggestions": true,"emmet.showExpandedAbbreviation": "always","emmet.includeLanguages": {"vue-html": "html","vue": "html","wpy": "html"},//主题颜色//"workbench.colorTheme": "Monokai","git.confirmSync": false,"explorer.confirmDelete": false,"editor.fontSize": 16,"window.zoomLevel": 1,"editor.wordWrap": "on","editor.detectIndentation": false,// 重新设定tabsize"editor.tabSize": 2,//失去焦点后自动保存"files.autoSave": "onFocusChange",// #值设置为true时,每次保存的时候自动格式化;"editor.formatOnSave": false,//每120行就显示一条线"editor.rulers": [],// 在使用搜索功能时,将这些文件夹/文件排除在外"search.exclude": {"**/node_modules": true,"**/bower_components": true,"**/target": true,"**/logs": true},// 这些文件将不会显示在工作空间中"files.exclude": {"**/.git": true,"**/.svn": true,"**/.hg": true,"**/CVS": true,"**/.DS_Store": true,"**/*.js": {"when": "$(basename).ts" //ts编译后生成的js文件将不会显示在工作空中},"**/node_modules": true},// #让vue中的js按"prettier"格式进行格式化"vetur.format.defaultFormatter.html": "js-beautify-html","vetur.format.defaultFormatter.js": "prettier","vetur.format.defaultFormatterOptions": {"js-beautify-html": {// #vue组件中html代码格式化样式"wrap_attributes": "force-aligned", //也可以设置为“auto”,效果会不一样"wrap_line_length": 200,"end_with_newline": false,"semi": false,"singleQuote": true},"prettier": {"semi": false,"singleQuote": true}},"[jsonc]": {"editor.defaultFormatter": "esbenp.prettier-vscode"},"editor.accessibilitySupport": "on","vsicons.dontShowNewVersionMessage": true,"editor.indentSize": "tabSize","vscodeGoogleTranslate.preferredLanguage": "Chinese (Simplified)","terminal.integrated.env.osx": {"FIG_NEW_SESSION": "1"},"security.workspace.trust.untrustedFiles": "open","[json]": {"editor.defaultFormatter": "esbenp.prettier-vscode"},"[javascript]": {"editor.defaultFormatter": "esbenp.prettier-vscode"},"security.workspace.trust.enabled": false
}

更多推荐

VS Code关闭受限模式,关闭信任工作区

本文发布于:2023-12-04 17:27:02,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1661677.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:模式   工作   Code

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!