zoukankan      html  css  js  c++  java
  • vscode settings.json配置

    {
      "editor.fontSize": 14,
      "workbench.editor.enablePreview": true, //预览模式关闭
      "editor.formatOnSave": true, // #每次保存的时候自动格式化
      // 自动修复
      "editor.codeActionsOnSave": {
        "source.fixAll.eslint": true
      },
      // "eslint.enable": true, //是否开启vscode的eslint
      // 配置 ESLint 检查的文件类型
      "eslint.validate": ["javascript", "vue", "html"],
      "eslint.options": {
        //指定vscode的eslint所处理的文件的后缀
        "extensions": [".js", ".vue", ".ts", ".tsx"]
      },
      "files.associations": {
        "*.wpy": "vue",
        "*.wxml": "wxml",
        "*.cjson": "jsonc",
        "*.wxss": "css",
        "*.wxs": "javascript",
        "*.html": "html",
        "*.vue": "vue"
      },
      "emmet.includeLanguages": {
        "wxml": "html"
      },
      // vscode默认启用了根据文件类型自动设置tabsize的选项
      "editor.detectIndentation": false,
      // 重新设定tabsize
      "editor.tabSize": 2,
      //  #去掉代码结尾的分号
      "prettier.semi": false,
      //  #使用单引号替代双引号
      "prettier.singleQuote": true,
      //  #让函数(名)和后面的括号之间加个空格
      "javascript.format.insertSpaceBeforeFunctionParenthesis": true,
      // #让vue中的js按编辑器自带的ts格式进行格式化
      "vetur.format.defaultFormatter.js": "prettier",
      "git.enableSmartCommit": true,
      "editor.quickSuggestions": {
        "strings": true
      },
      "vetur.validation.template": true,
      //一定要在vutur.defaultFormatterOptions参数中设置,单独修改prettier扩展的设置是无法解决这个问题的,因为perttier默认忽略了vue文件(事实上从忽略列表移除vue也不能解决这个问题)
      "vetur.format.defaultFormatterOptions": {
        "prettier": {
          "semi": false, // 格式化不加分号
          "singleQuote": true // 格式化以单引号为主
        },
        "js-beautify-html": {
          // force-aligned | force-expand-multiline
          "wrap_attributes": "force-aligned"
        },
        "prettyhtml": {
          "printWidth": 100,
          "singleQuote": false,
          "wrapAttributes": false,
          "sortAttributes": true
        }
      },
      // 插件KoroFileHeader
      // 文件头部注释-快捷键crtl+alt+i(window),ctrl+cmd+t (mac)
      "fileheader.customMade": {
        "Descripttion": "",
        //"version": "",
        "Author": "luozhongpeng",
        "Date": "Do not edit",
        "LastEditors": "luozhongpeng",
        "LastEditTime": "Do not Edit"
      },
      //函数注释-快捷键ctrl+alt+t (window), ctrl+alt+t(mac)
      "fileheader.cursorMode": {
        "name": "",
        // "test": "test font",
        // "msg": "",
        "param": "",
        "return": ""
      },
      //安装live Server插件
      "liveServer.settings.donotVerifyTags": true,
      "liveServer.settings.donotShowInfoMsg": true,
      "liveServer.settings.NoBrowser": true,
      "liveServer.settings.CustomBrowser": "chrome", //设置默认打开的浏览器
      "liveServer.settings.host": "127.0.0.1",
      "liveServer.settings.port": 5000, //设置本地服务的端口号
      "liveServer.settings.root": "/distserver",
      "[vue]": {
        "editor.defaultFormatter": "octref.vetur"
      },
      "javascript.updateImportsOnFileMove.enabled": "never",
      "javascript.implicitProjectConfig.experimentalDecorators": true,
      "workbench.editor.showTabs": true,
      "terminal.integrated.rendererType": "dom",
      "window.zoomLevel": 0,
      "diffEditor.ignoreTrimWhitespace": false,
      "launch": {},
      "json.schemas": [
        {
          "fileMatch": ["/myfile"],
          "url": "schemaURL"
        }
      ],
      "workbench.startupEditor": "newUntitledFile",
      "[html]": {
        "editor.defaultFormatter": "esbenp.prettier-vscode"
      },
      "[javascript]": {
        "editor.defaultFormatter": "esbenp.prettier-vscode"
      },
      "[jsonc]": {
        "editor.defaultFormatter": "esbenp.prettier-vscode"
      }
    }
  • 相关阅读:
    2016"百度之星"
    codeforces 55 div2 C.Title 模拟
    codeforces 98 div2 C.History 水题
    codeforces 97 div2 C.Replacement 水题
    codeforces 200 div2 C. Rational Resistance 思路题
    bzoj 2226 LCMSum 欧拉函数
    hdu 1163 九余数定理
    51nod 1225 余数的和 数学
    bzoj 2818 gcd 线性欧拉函数
    Codeforces Round #332 (Div. 2)D. Spongebob and Squares 数学
  • 原文地址:https://www.cnblogs.com/Alitar/p/11131856.html
Copyright © 2011-2022 走看看