vscode配置
{ "editor.fontFamily": "Fira Code", "editor.fontLigatures": true, // "editor.renderWhitespace": "boundary", "editor.fontSize": 17, "editor.formatOnSave": true, "workbench.startupEditor": "newUntitledFile", "search.location": "panel", "workbench.activityBar.visible": true, "editor.detectIndentation": true, // "editor.cursorSmoothCaretAnimation": true, "editor.lineHeight": 24, "editor.formatOnPaste": true, "eslint.autoFixOnSave": true, // 添加 vue 支持 "eslint.validate": [ "javascript", "javascriptreact", { "language": "vue", "autoFix": true } ], "emmet.includeLanguages": { "wxml": "html" }, "prettier.eslintIntegration": true, "prettier.semi": false, "prettier.singleQuote": true, "javascript.format.insertSpaceBeforeFunctionParenthesis": true, // #这个按用户自身习惯选择 "vetur.format.defaultFormatter.html": "js-beautify-html", // #让vue中的js按编辑器自带的ts格式进行格式化 "vetur.format.defaultFormatter.js": "vscode-typescript", "vetur.format.defaultFormatterOptions": { "js-beautify-html": { "wrap_attributes": "force" // #vue组件中html代码格式化样式 } }, "terminal.integrated.shell.windows": "C:\\Windows\\system32\\cmd.exe", "terminal.integrated.rendererType": "dom", // 两个选择器中是否换行 "phpfmt.php_bin": "D:\\programs\\phpStudy\\PHPTutorial\\php\\php-7.2.1-nts\\php.exe", "workbench.iconTheme": "vs-nomo-dark", "phpfmt.passes": ["OnlyOrderUseClauses"], "phpfmt.indent_with_space": 4, "php.executablePath": "D:\\programs\\phpStudy\\PHPTutorial\\php\\php-7.2.1-nts\\php.exe", "workbench.colorTheme": "Monokai", "prettier.printWidth": 170, "[html]": { "editor.defaultFormatter": "esbenp.prettier-vscode" } }

更多精彩