settings.json配置 ¶
1、打开vscode 2、快捷键
- win系统:ctrl + shift + p
- mac系统:command+shift + p
3、搜索 首选项:打开设置
,选择
4、粘贴以下配置代码
json
{
"search.useIgnoreFiles": false,
"emmet.syntaxProfiles": {
"vue-html": "html",
"vue": "html"
},
"files.autoSave": "off",
"eslint.validate": [
"javascript",
"javascriptreact",
"vue",
"html",
],
"eslint.options": {
"overrideConfig": {
"plugins": [
"vue",
"html",
"import",
"promise"
],
}
},
"workbench.colorTheme": "Default Light+",
"workbench.sideBar.location": "left",
"workbench.startupEditor": "welcomePage",
"workbench.editorAssociations": {
"*.ipynb": "jupyter.notebook.ipynb"
},
"editor.wordWrap": "wordWrapColumn",
"editor.formatOnSave": true,
"editor.wordWrapColumn": 300,
"editor.rulers": [
300
],
"editor.codeActionsOnSave": {},
"editor.quickSuggestions": {},
"editor.wordSeparators": "`~!@#%^&*()-=+[{]}\\|;:'\",.<>/?",
"editor.detectIndentation": false,
"editor.semanticTokenColorCustomizations": {},
"editor.suggestSelection": "first",
"html.format.unformatted": "",
"html.format.wrapLineLength": 300,
"html.format.wrapAttributes": "aligned-multiple",
"vetur.experimental.templateInterpolationService": false,
"vetur.format.defaultFormatter.html": "js-beautify-html",
"vetur.format.defaultFormatter.js": "vscode-typescript",
"vetur.format.defaultFormatter.ts": "vscode-typescript",
"vetur.format.defaultFormatterOptions": {
"js-beautify-html": {
"wrap_line_length": 150,
"wrap_attributes": "auto",
"end_with_newline": false
},
"prettyhtml": {
"printWidth": 200,
"singleQuote": false,
"wrapAttributes": false,
"sortAttributes": false
},
"prettier": {
"proseWrap": "never",
"printWidth": 200,
"semi": true,
"singleQuote": false
}
},
"explorer.confirmDragAndDrop": false,
"files.exclude": {
"**/dist": true,
"**/node_modules": true,
"**/unpackage": true,
"**/.classpath": true,
"**/.project": true,
"**/.settings": true,
"**/.factorypath": true
},
"files.associations": {
// vue文件自动补齐 html相关
// "*.vue": "html"
},
"diffEditor.renderSideBySide": false,
"diffEditor.ignoreTrimWhitespace": false,
"search.followSymlinks": false,
"php.validate.executablePath": "/usr/bin/php",
"php.suggest.basic": false,
"php.executablePath": "/usr/bin/php",
"python.linting.maxNumberOfProblems": 100,
"python.formatting.yapfArgs": [
"--style",
"{column_limit: 200}"
],
"python.terminal.launchArgs": [],
"python.formatting.autopep8Args": [
"--max-line-length=300"
],
"vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
"java.project.importHint": false,
"window.openFilesInNewWindow": "on",
}