序文
settings.json ファイルの機能は、このファイルをインストール ディレクトリに置くと、vscode がこのファイルを自動的に認識することです。これにより、新しい vscode を以前に設定した方法にすばやく設定できます。
提示:以下是本篇文章正文内容,下面案例可供参考
1.vscodeでsetting.jsonファイルを開くにはどうすればよいですか?
方法 1:
2. よく使用されるファイル構成
{
"tslint.autoFixOnSave": true,
"workbench.iconTheme": "vscode-icons",
"window.zoomLevel": 1,
"gitlens.advanced.messages": {
"suppressShowKeyBindingsNotice": true
},
"liveServer.settings.donotShowInfoMsg": true,
"team.showWelcomeMessage": false,
"git.enableSmartCommit": true,
"guides.enabled": false,
"vsicons.dontShowNewVersionMessage": true,
"javascript.updateImportsOnFileMove.enabled": "always",
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
},
"editor.defaultFormatter": "esbenp.prettier-vscode",
"vetur.format.defaultFormatterOptions": {
"js-beautify-html": {
"wrap_attributes": "force-expand-multiline",
"end_with_newline": true
}
},
"vetur.format.options.tabSize": 2,
"vetur.format.defaultFormatter.html": "js-beautify-html",
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[less]": {
"editor.defaultFormatter": "michelemelluso.code-beautifier"
},
"[html]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[vue]": {
"editor.defaultFormatter": "octref.vetur"
},
"[css]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"emmet.includeLanguages": {
"javascript": "javascriptreact"
},
"[jsonc]": {
"editor.defaultFormatter": "HookyQR.beautify"
},
"editor.tabSize": 2,
"diffEditor.ignoreTrimWhitespace": false,
"files.associations": {
},
"http.proxyAuthorization": null,
"editor.rulers": [],
"scf.python3.path": "",
"scf.python2.path": "",
"interview.workspaceFolder": "",
"interview.updateNotification": 1626679595429,
"search.exclude": {
"**/node_modules": false
},
"[json]": {
"editor.quickSuggestions": {
"strings": true
},
"editor.suggest.insertMode": "replace",
"gitlens.codeLens.scopes": [
"document"
]
},
"security.workspace.trust.untrustedFiles": "open",
}