首页 > 其他分享 >vscode常用配置的json文件

vscode常用配置的json文件

时间:2022-11-08 09:49:07浏览次数:70  
标签:常用 false vscode json html editor true prettier

{
    "editor.parameterHints": true,
    "editor.quickSuggestions": {
        "other": true,
        "comments": true,
        "strings": true
    },
    "window.zoomLevel": 0,
    "merge-conflict.autoNavigateNextConflict.enabled": true,
    "files.autoSave": "onWindowChange",
    "editor.suggest.snippetsPreventQuickSuggestions": false,
    "[vue]": {
        "editor.defaultFormatter": "esbenp.prettier-vscode"
    },
    "[javascript]": {
        "editor.defaultFormatter": "vscode.typescript-language-features"
    },
    "emmet.excludeLanguages": [
        "markdown"
    ],
    "diffEditor.ignoreTrimWhitespace": false,
    "workbench.iconTheme": "vscode-icons",
    "beautify.ignore": "",
    "beautify.config": "",
    "editor.formatOnType": true,
    "editor.formatOnSave": true,// #每次保存的时候自动格式化 
    "editor.formatOnPaste": true,
    "prettier.requireConfig": true,
    // vscode默认启用了根据文件类型自动设置tabsize的选项
    "editor.detectIndentation": false,
    // 重新设定tabsize
    "editor.tabSize": 2,
    // #每次保存的时候将代码按eslint格式进行修复
    "eslint.autoFixOnSave": true,
      // 添加 vue 支持
      "eslint.validate": [
        "javascript",
        "javascriptreact",
        {
            "language": "vue",
            "autoFix": true
        }
    ],

    //  #让prettier使用eslint的代码格式进行校验 
    "prettier.eslintIntegration": true,
    //  #去掉代码结尾的分号 
    "prettier.semi": false,
    //  #使用带引号替代双引号 
    "prettier.singleQuote": true,
    //  #让函数(名)和后面的括号之间加个空格
    "javascript.format.insertSpaceBeforeFunctionParenthesis": true,
    //#这个按用户自身习惯选择 
    "vetur.format.defaultFormatter.html": "js-beautify-html",
    // #让vue中的js按编辑器自带的ts格式进行格式化 
    "vetur.format.defaultFormatter.js": "vscode-typescript",
    "vetur.format.defaultFormatterOptions": {
        "js-beautify-html": {
            "wrap_attributes": "force-aligned"
            // #vue组件中html代码格式化样式
        }
    },
    // 格式化stylus, 需安装Manta's Stylus Supremacy插件
    "stylusSupremacy.insertColons": false, // 是否插入冒号
    "stylusSupremacy.insertSemicolons": false, // 是否插入分好
    "stylusSupremacy.insertBraces": false, // 是否插入大括号
    "stylusSupremacy.insertNewLineAroundImports": false, // import之后是否换行
    "stylusSupremacy.insertNewLineAroundBlocks": false, // 两个选择器中是否换行
    "[html]": {
        "editor.defaultFormatter": "HookyQR.beautify"
    },
    "files.associations": {
        "*.cjson": "jsonc",
        "*.wxss": "css",
        "*.wxs": "javascript"
    },
    "emmet.includeLanguages": {
        "wxml": "html"
    },
    "minapp-vscode.disableAutoConfig": true,
}

标签:常用,false,vscode,json,html,editor,true,prettier
From: https://www.cnblogs.com/Sultan-ST/p/16868606.html

相关文章

  • 小程序开发vscode常用插件
    wechat-snippet微信小程序代码辅助,代码片段自动完成minapp微信小程序标签、属性的智能补全(同时支持原生小程序、mpvue和wepy框架,并提供snippets)wxapp-helper微信......
  • git常用回撤操作
    gitcommit--no-verify-m"忽略eslint提交"gitreflog//命令可以看到所有的提交操作以及代码版本和具体的版本号gitlog//简化版的gitrefloggitrevert//命令......
  • vscode常用配置
    {"editor.quickSuggestions":{"other":true,"comments":true,"strings":true},"editor.fontSize":16,"editor.wordWrap":"off",//永不......
  • webpack中配置CSS兼容性时报错 Failed to parse package.json data
      是因为在package.json中添加了注释正确webpack配置CSS兼容性的步骤:npmipostcss-loaderpostcss-preset-env-D/webpack.config.jsmodule:{    ru......
  • Long数据类型序列化Json后传递给前端,产生的精度丢失的问题解决
    问题产生的原因Long类型的数据,如果我们在后端将结果序列化为json,直接传给前端的话,在Long长度大于17位时会出现精度丢失的问题。java中的long能表示的范围比js中number大,......
  • 常用正则表达式
    Email地址:^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$域名:[a-zA-Z0-9][-a-zA-Z0-9]{0,62}(/.[a-zA-Z0-9][-a-zA-Z0-9]{0,62})+/.?InternetURL:[a-zA-z]+://[^\s]*......
  • vscodeSnippetSetting
    设定vscode用户代码段这本来挺简单的,左下角设置-用户代码段配置在选项中可以选择类型专属或者全局代码段.今天遇到的问题是配置Markdown代码段之后,没有效果,但测试其他......
  • Python Ujson
    UJson主要记录其安装方式,能使用pipinstallujson进行安装不过好像有点慢,反正我等了很久,也可以使用Python命令进行安装会快一点,命令如下:python-mpipinstallujson ......
  • 常用公用用例设计-增删改查
    常用公用用例设计-增删改查一、保存操作1、保存成功,数据库增加新纪录——OK2、保存失败,数据库没有新增纪录——OK3、非必填项不输入保存——OK4、......
  • 使用 vscode 编译+运行 typescropt Mac win同理
    一、.d.ts文件最好在src/typings目录下,可在tsconfig.json文件配置二、vs监听文件变化,自动编译ts文件tsconfig.json{"compilerOptions":{"target":"es5"......