zoukankan      html  css  js  c++  java
  • vs code 代码格式化

    1.打开vs code > 文件 > 首选项 > 设置 > 将下面一段粘贴在右侧即可

    // Place your settings in this file to overwrite the default settings
    {
    "python.formatting.provider": "yapf",
    "view-in-browser.customBrowser": "chrome",
     
    "files.associations": {
    "*.vue": "vue"
    },
    "eslint.options": {
    "extensions": [
    ".js",
    ".vue"
    ]
    },
    "search.exclude": {
    "**/node_modules": true,
    "**/bower_components": true,
    "**/dist": true
    },
    "emmet.syntaxProfiles": {
    "javascript": "jsx",
    "vue": "html",
    "vue-html": "html"
    },
    "window.title": "${dirty}${activeEditorMedium}${separator}${rootName}",
    // 窗口失去焦点自动保存
    "files.autoSave": "off",
    // 编辑粘贴自动格式化
    "editor.formatOnPaste": true,
    // 控制字体系列。
    // "editor.fontFamily": "pingfang,Menlo, Monaco, 'Courier New', monospace",
     
    // 通过使用鼠标滚轮同时按住 Ctrl 可缩放编辑器的字体
    "editor.mouseWheelZoom": false,
    // 行太长自动换行
    "editor.wordWrap": "on",
    //Windows bash终端"terminal.integrated.shell.windows": "C:\Program Files\Git\bin\bash.exe",
    // 主体
    "workbench.colorTheme": "Monokai",
    "workbench.iconTheme": "vs-seti",
    // eslint设置
    "eslint.validate": [
    "javascript",
    "javascriptreact",
    "html",
    "vue",
    {
    "language": "vue",
    "autoFix": true
    }
    ],
    // 保存自动修复
    "eslint.autoFixOnSave": true,
    // tab锁紧
    "editor.tabSize": 2,
    // 保存自动化
    "editor.formatOnSave": true,
    // 空格变成......
    "editor.renderWhitespace": "all",
    "window.zoomLevel": 0,
    "vetur.format.defaultFormatter.html": "js-beautify-html"
    }
  • 相关阅读:
    k8s 组件介绍-kube-controller-manager
    k8s 组件介绍-API Server
    ELK+filebeat+redis 日志分析平台
    Logstash配置文件详情
    Logstash,Fluentd, Logtail对比伤害
    公司redis
    Linux之网络ping(unknown host)故障及yum no more mirrors to try
    Linux思维导图之计划任务
    Linux思维导图之进程管理
    Linux思维导图之网络管理
  • 原文地址:https://www.cnblogs.com/AKI-LILI/p/vs.html
Copyright © 2011-2022 走看看