zoukankan      html  css  js  c++  java
  • VS Code 工具配置和格式化

    {
      "onSave": true,
      "javascript": {
        "indent_size": 2,
        "indent_char": " ",
        "eol": "auto",
        "preserve_newlines": true,
        "break_chained_methods": false,
        "max_preserve_newlines": 0,
        "space_in_paren": false,
        "space_in_empty_paren": false,
        "jslint_happy": false,
        "space_after_anon_function": false,
        "keep_array_indentation": false,
        "space_before_conditional": true,
        "unescape_strings": false,
        "wrap_line_length": 0,
        "e4x": false,
        "end_with_newline": true,
        "comma_first": false,
        "brace_style": "preserve-inline"
      },
      "css": {
        "indent_size": 2,
        "indentCharacter": " ",
        "indent_char": " ",
        "selector_separator_newline": true,
        "end_with_newline": true,
        "newline_between_rules": true,
        "eol": "
    "
      },
      "html": {
        "indent_inner_html": false,
        "end_with_newline": true,
        "indent_size": 2,
        "indent_char": " ",
        "indent_character": " "
      }
    }

    settings.json文件

    {
      "files.autoSave": "off",
      "editor.formatOnSave": true,
      "editor.tabSize": 2,
      "emmet.syntaxProfiles": {
        "vue-html": "html",
        "vue": "html"
      },
      "files.associations": {
        "*.vue": "vue"
      },
      "[vue]": {
        "editor.tabSize": 2
      },
      "eslint.validate": [
        "javascript",
        "javascriptreact",
        "html",
        "vue"
      ],
      "vetur.format.defaultFormatter.js": "vscode-typescript",
      "vetur.format.defaultFormatter.html": "js-beautify-html",
      "vetur.format.defaultFormatter.stylus": "none",
      "vetur.format.defaultFormatter.less": "none"
    }
    

      

  • 相关阅读:
    VS 2017 没有工具栏中没有Report Viewer的解决方案
    数据类型和C#关系对应
    .NET CORE部署各种问题
    .NET CORE AutoMapper使用
    .NET CORE 配置Swagger文档
    window快捷登陆linux的的设置方式(设置ssh的config配置)
    linux安装mongodb并启动
    windows更改DNS设置
    scp的使用
    浏览器缓存机制
  • 原文地址:https://www.cnblogs.com/isylar/p/9103342.html
Copyright © 2011-2022 走看看