zoukankan      html  css  js  c++  java
  • vs code 插件推荐

    json配置:

    {
      "editor.fontSize": 16,
      "[javascript]": {
       // #每次保存的时候自动格式化
      "editor.formatOnSave": true,
      // #每次保存的时候将代码按eslint格式进行修复
      "eslint.autoFixOnSave": true,
        "editor.defaultFormatter": "ryannaddy.vscode-format"
      },
      "[html]": {
        "editor.defaultFormatter": "ryannaddy.vscode-format"
      },
      "emmet.triggerExpansionOnTab": true,
      "files.associations": {
        "*.js": "javascript"
      },
      "workbench.iconTheme": "vscode-icons",
      "workbench.editor.enablePreview": false, //打开文件不覆盖
      "search.followSymlinks": false, //关闭快速预览
      "liveServer.settings.donotShowInfoMsg": true, //关闭liveserver提示
      "files.autoSave": "off", //打开自动保存
      // "editor.fontSize": 16, //设置文字大小
      // "editor.lineHeight": 24, //设置文字行高
      "editor.lineNumbers": "on", //开启行数提示
      "editor.quickSuggestions": {
        //开启自动显示建议
        "other": true,
        "comments": true,
        "strings": true
      },
      "workbench.colorTheme": "Darcula Theme from IntelliJ", //指定工作台中使用的颜色主题
      "window.zoomLevel": 0, // 调整窗口的缩放级别
      "editor.tabSize": 2, //制表符符号eslint
      "emmet.includeLanguages": {
        "javascript": "javascriptreact"
      },
      "files.associations": {
        "*.js": "javascriptreact"
      },
      "javascript.updateImportsOnFileMove.enabled": "always",
         // #每次保存的时候自动格式化
         "editor.formatOnSave": true,
         // #每次保存的时候将代码按eslint格式进行修复
        "eslint.autoFixOnSave": true,
        "editor.codeActionsOnSave": {
          "source.fixAll.eslint": true
        },
    }
  • 相关阅读:
    javascript之数组去重方法
    经典问题之爬楼梯
    javascript之事件循环机制
    javascript之闭包
    javascript之动态改变this上下文
    块级元素的垂直居中对齐
    js数组对象
    javascript-冒泡法排序
    javascript-数组
    javascript-循环
  • 原文地址:https://www.cnblogs.com/ljh12138/p/13559392.html
Copyright © 2011-2022 走看看