vscode golang vue配置

Posted _DongGe

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了vscode golang vue配置相关的知识,希望对你有一定的参考价值。

{
    "files.autoSave": "off",
    "window.title": "${dirty}${activeEditorLong}${separator}${rootName}${separator}${appName}",
    "go.languageServerExperimentalFeatures": {
        "diagnostics": true // for build and vet errors as you type
    },
    "[go]": {
        "editor.snippetSuggestions": "none",
        "editor.formatOnSave": true,
        "editor.codeActionsOnSave": {
            "source.organizeImports": true
        }
    },
    "gopls": {
        "usePlaceholders": true // add parameter placeholders when completing a function
    },
    "files.eol": "\n",
    "workbench.editor.enablePreview": false,
    "editor.fontSize": 16, // formatting only supports LF line endings
    //配置eslint
   "eslint.autoFixOnSave": true,
   "files.autoSave": "off",
   "eslint.validate": [
      "javascript",
      "javascriptreact",
      "html",
      {
         "language": "vue",
         "autoFix": true
      }
   ],
   // 改为你的文件路径
   "eslint.options": {
      "configFile": "./.eslintrc.js"
   },
   //为了符合eslint的两个空格间隔原则
   "editor.tabSize": 2,
   "editor.quickSuggestions": {
      "strings": true
   }
}

 

以上是关于vscode golang vue配置的主要内容,如果未能解决你的问题,请参考以下文章

VSCode自定义代码片段11——vue路由的配置

vscode golang vue配置

VSCode自定义代码片段1——vue主模板

VSCode自定义代码片段(vue主模板)

VSCode自定义代码片段——.vue文件的模板

VSCode自定义代码片段2——.vue文件的模板