visual studio 保存自动格式化 插件: format document on Save ![在这里插入图片描述](https://img-blog.csdnimg.cn/344f939bc098404bacbcd2f6ebea3d11.png?x-oss-process=image/watermark,type_ZHJvaWRzYW5zZmFsbGJhY2s,shadow_50,text_Q1NETiBAa3VpbGF1cmVuY2U=,size_20,color_FFFFFF,t_70,g_se,x_16)
vscode 自定义配置setting.json; 文件->首选项->设置-> ![在这里插入图片描述](https://img-blog.csdnimg.cn/d347603a00844c358b0880d2018cc87c.png?x-oss-process=image/watermark,type_ZHJvaWRzYW5zZmFsbGJhY2s,shadow_50,text_Q1NETiBAa3VpbGF1cmVuY2U=,size_20,color_FFFFFF,t_70,g_se,x_16)
其他可选设置: ![在这里插入图片描述](https://img-blog.csdnimg.cn/c0390651a7b94d39b925a49fa338b8c6.png) ![在这里插入图片描述](https://img-blog.csdnimg.cn/492068ac5dfe4e16a4a571ddefe1aea7.png?x-oss-process=image/watermark,type_ZHJvaWRzYW5zZmFsbGJhY2s,shadow_50,text_Q1NETiBAa3VpbGF1cmVuY2U=,size_20,color_FFFFFF,t_70,g_se,x_16)
{
"terminal.integrated.shell.windows": "C:\\Windows\\System32\\cmd.exe",
"python.defaultInterpreterPath": "C:\\Users\\Admin\\AppData\\Local\\Programs\\Python\\Python38\\python.exe",
"kite.showWelcomeNotificationOnStartup": false,
"[javascript]": {
"editor.defaultFormatter": "vscode.typescript-language-features"
},
"editor.suggestSelection": "first",
"vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
"explorer.confirmDelete": false,
"[html]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescript]": {
"editor.defaultFormatter": "vscode.typescript-language-features"
},
"workbench.editorAssociations": {
"*.ipynb": "jupyter.notebook.ipynb"
},
"python.languageServer": "Pylance",
"workbench.colorTheme": "Atom One Dark",
"explorer.confirmDragAndDrop": false,
"diffEditor.ignoreTrimWhitespace": false,
"[json]": {
"editor.defaultFormatter": "vscode.json-language-features"
},
"[jsonc]": {
"editor.defaultFormatter": "vscode.json-language-features"
},
"vetur.format.defaultFormatter.html": "js-beautify-html",
"vetur.format.defaultFormatter.js": "vscode-typescript",
"vetur.format.defaultFormatterOptions": {
"js-beautify-html": {
"wrap_attributes": "auto"
},
"prettyhtml": {
"printWidth": 100,
"singleQuote": false,
"wrapAttributes": false,
"sortAttributes": false
}
},
"editor.formatOnSave": true,
"git.enableSmartCommit": true,
"javascript.updateImportsOnFileMove.enabled": "always",
"security.workspace.trust.untrustedFiles": "open",
"workbench.editor.untitled.hint": "hidden",
"editor.codeActionsOnSave": null,
}
|