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"
    }
    

      

  • 相关阅读:
    CPU 后缀
    获取当前IP的接口
    win10 禁用自动更新
    C# 调用腾讯云接口获取视频基本信息
    SQL Server服务器角色和数据库角色描述
    C# 使用cmd
    C# 对DataTable的简单操作
    参考文档链接地址-个人比较推荐的
    类似input框内最右边添加图标,有清空功能
    CentOS-6.3安装Mysql-5.5.29[转]
  • 原文地址:https://www.cnblogs.com/isylar/p/9103342.html
Copyright © 2011-2022 走看看