常用的vscode配置

{
"extensions.autoUpdate": "onlySelectedExtensions",
"workbench.iconTheme": "material-icon-theme",
"vsicons.dontShowNewVersionMessage": true,
"editor.fontSize": 16,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
},
"workbench.editor.enablePreview": false,
"search.followSymlinks": false, //关闭rg.exe进程
"editor.lineNumbers": "on", //开启行数提示
"editor.quickSuggestions": {
//开启自动显示建议
"other": true,
"comments": true,
"strings": true
}, //每次保存自动格式化
"prettier.eslintIntegration": true, //让prettier使用eslint的代码格式进行校验
"prettier.semi": true, //使用带引号替代双引号
"javascript.format.insertSpaceBeforeFunctionParenthesis": true, //让函数(名)和后面的括号之间加个空格
"vetur.format.defaultFormatter.html": "js-beautify-html", //格式化.vue中html
"vetur.format.defaultFormatterOptions": {
"js-beautify-html": {
"wrap_attributes": "force-aligned" //属性强制折行对齐
},
"prettier": {
"printWidth": 80,
"singleQuote": true,
"semi": false,
"trailingComma": "es5",
"tabWidth": 2,
"useTabs": false
}
},
"eslint.format.enable": true, // eslint格式化开启
"eslint.validate": [
// eslint校验的文件列表
"javascript",
"vue",
"html",
"javascriptreact",
"vue-html"
],
/* 添加如下配置 */
"vetur.format.defaultFormatter.js": "vscode-typescript", // 取消vetur默认的JavaScript格式化工具
"[javascript]": {
"editor.defaultFormatter": "vscode.typescript-language-features" // 只采用eslint的格式化
},
"[vue]": {
"editor.defaultFormatter": "rvest.vs-code-prettier-eslint" // vue文件还是采用vetur格式化
},
"[html]": {
"editor.defaultFormatter": "vscode.html-language-features"
},
//"terminal.integrated.shell.windows": "C:\\Windows\\System32\\cmd.exe",
"terminal.integrated.defaultProfile.windows": "C:\\Windows\\System32\\cmd.exe",
"javascript.updateImportsOnFileMove.enabled": "always",
"[json]": {
"editor.defaultFormatter": "vscode.json-language-features"
},
"extensions.ignoreRecommendations": true,
"scm.diffDecorationsGutterAction": "none",
"scm.diffDecorations": "none",
"intelephense.diagnostics.languageConstraints": false,
"workbench.colorTheme": "Monokai",
"editor.minimap.enabled": false,
"breadcrumbs.enabled": false,
"editor.unicodeHighlight.allowedCharacters": {
" ": true
},
"editor.unicodeHighlight.ambiguousCharacters": false,
"[css]": {
"editor.defaultFormatter": "vscode.css-language-features"
},
"settingsSync.ignoredExtensions": [
"daxiang.tp5-snippet"
],
"px-to-rpx.baseWidth": 450,
"editor.formatOnSave": true,
"editor.formatOnPaste": true,
"px-to-rpx.fixedDigits": 2,
"php.validate.executablePath": "C:/Users/xfstu/AppData/Local/BtSoft/php/82/php.exe",
"vetur.completion.scaffoldSnippetSources": {
"workspace": "💼",
"user": "🗒️",
"vetur": "✌"
},
"[jsonc]": {
"editor.defaultFormatter": "vscode.json-language-features"
},
"prettier.printWidth": 160,
"prettier.singleQuote": true,
"prettier.vueIndentScriptAndStyle": true,
"[python]": {
"editor.formatOnType": true
},
"git.ignoreMissingGitWarning": true,
"window.commandCenter": false,
"codeium.enableConfig": {
"*": true
},
"[typescript]": {
"editor.defaultFormatter": "rvest.vs-code-prettier-eslint"
},
"editor.tabSize": 2,
"redhat.telemetry.enabled": false,
"codeium.enableCodeLens": false,
"editor.stickyScroll.enabled": false,
"intelephense.environment.includePaths": [
"vendor",
"extend"
],
"intelephense.files.associations": [
"*.php",
"*.phtml"
],
"intelephense.files.exclude": [
"**/.git/**",
"**/.svn/**",
"**/.hg/**",
"**/CVS/**",
"**/.DS_Store/**",
"**/node_modules/**",
"**/bower_components/**",
"**/.history/**",
"**/vendor/**/vendor/**",
"**/vendor/**/{Tests,tests}/**"
],
"codeium.aggressiveShutdown": true,
"npm.exclude": ""
}

常用的扩展

  • Codeium
  • Material Icon Theme
  • PHP Intelephense
  • Vue - Official
  • ESLint
  • Prettier ESLint
  • vue-helper

图片1
图片2

posted @   小枫同学  阅读(55)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· winform 绘制太阳,地球,月球 运作规律
· AI与.NET技术实操系列(五):向量存储与相似性搜索在 .NET 中的实现
· 超详细:普通电脑也行Windows部署deepseek R1训练数据并当服务器共享给他人
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 上周热点回顾(3.3-3.9)
点击右上角即可分享
微信分享提示