vscode插件和配置

settings.json

{
    "workbench.startupEditor": "none",
    "editor.tabSize": 2,
    "html.format.contentUnformatted": "",
    "editor.formatOnSave": true, // 保存自动格式化
    "js/ts.implicitProjectConfig.experimentalDecorators": true,
    "editor.fontSize": 15,
    "settingsSync.ignoredExtensions": [],
    // #值设置为true时,每次保存的时候自动格式化;值设置为false时,代码格式化请按shift+alt+F
    // "editor.formatOnType": false,
    "editor.fontWeight": "400",
    "editor.guides.bracketPairs": "active",
    "editor.unicodeHighlight.ambiguousCharacters": false,
    "explorer.confirmDelete": false,
    "editor.wordWrap": "off",
    // "workbench.colorTheme": "Meng Dark Pro",
    "cssrem.autoRemovePrefixZero": false,
    "cssrem.fixedDigits": 3,
    "cssrem.rootFontSize": 24,
    "editor.mouseWheelZoom": true,
    "git.enableSmartCommit": true,
    "editor.tokenColorCustomizations": {
        // 61afef蓝色 fff 白色 636d83 灰色 ffc0cb 粉色 b8dbee 青色 C3A7D6 淡紫色 0a0 绿色 e2d75dbd 黄色
        // "keywords": "#0a0", // 关键字
        // "comments": "#636d83", // 注释 - 绿色
        // "variables": "#cf5757", // 变量名
        // "functions": "#61afef", // 函数名
        // "strings": "#f2f8f2bd", // 字符串
        // 鲜艳
        // "comments": "#C68A69", // 注释颜色(淡橙色)
        // "strings": "#E55B95", // 字符串颜色(桃红色)
        // "keywords": "#569CD6", // 关键字颜色(蓝色)
        // "variables": "#E1E88A", // 变量颜色(淡黄色)
        // "functions": "#C3A7D6", // 函数颜色(淡紫色)
        // "numbers": "#87C5A6", // 数字颜色(绿色)
        // "operators": "#D4D4D4", // 运算符颜色(灰色)
        // "types": "#E35F7B", // 类型颜色(粉红色)
        // 
        "comments": "#5C6370", // 注释颜色(深灰色)
        "strings": "#da8c6d", // 字符串颜色(深红色)
        "keywords": "#81A1C1", // 关键字颜色(深蓝色)
        "variables": "#A3BE8C", // 变量颜色(深绿色)
        "functions": "#B48EAD", // 函数颜色(深紫色)
        "numbers": "#88C0D0", // 数字颜色(淡蓝色)
        "operators": "#D4D4D4", // 运算符颜色(灰色)
        "types": "#8FBCBB", // 类型颜色(深青色)
        // 黑色主题
        // "comments": "#688CB3", // 注释颜色(蓝色)
        // "strings": "#FFA07A", // 字符串颜色(橙色)
        // "keywords": "#00FFFF", // 关键字颜色(青色)
        // "variables": "#98FB98", // 变量颜色(淡绿色)
        // "functions": "#FFD700", // 函数颜色(金色)
        // "numbers": "#8470FF", // 数字颜色(紫蓝色)
        // "operators": "#D4D4D4", // 运算符颜色(灰色)
        // "types": "#FF4500", // 类型颜色(橙红色)
        // 白色主题
        // "comments": "#6A737D", // 注释颜色(浅灰色)
        // "strings": "#183691", // 字符串颜色(深蓝色)
        // "keywords": "#008AD1", // 关键字颜色(蓝色)
        // "variables": "#333333", // 变量颜色(深灰色)
        // "functions": "#B48EAD", // 函数颜色(深紫色)
        // "numbers": "#4184AF", // 数字颜色(深蓝色)
        // "operators": "#D4D4D4", // 运算符颜色(灰色)
        // "types": "#9876AA", // 类型颜色(淡紫色)
    },
    /*  prettier的配置 */
    "prettier.printWidth": 260, // 超过最大值换行
    "prettier.tabWidth": 2, // 缩进字节数
    "prettier.useTabs": false, // 缩进不使用tab,使用空格
    "prettier.semi": false, // 句尾添加分号
    "prettier.singleQuote": true, // 使用单引号代替双引号
    "prettier.proseWrap": "preserve", // 默认值。因为使用了一些折行敏感型的渲染器(如GitHub comment)而按照markdown文本样式进行折行
    "prettier.arrowParens": "avoid", //  (x) => {} 箭头函数参数只有一个时是否要有小括号。avoid:省略括号
    "prettier.bracketSpacing": true, // 在对象,数组括号与文字之间加空格 "{ foo: bar }"
    // "prettier.disableLanguages": ["vue"], // 不格式化vue文件,vue文件的格式化单独设置
    "prettier.endOfLine": "auto", // 结尾是 \n \r \n\r auto
    "prettier.eslintIntegration": false, //不让prettier使用eslint的代码格式进行校验
    "prettier.htmlWhitespaceSensitivity": "ignore",
    "prettier.ignorePath": ".prettierignore", // 不使用prettier格式化的文件填写在项目的.prettierignore文件中
    // "prettier.jsxBracketSameLine": false, // 在jsx中把'>' 是否单独放一行
    "prettier.jsxSingleQuote": false, // 在jsx中使用单引号代替双引号
    "prettier.parser": "babylon", // 格式化的解析器,默认是babylon
    "prettier.requireConfig": false, // Require a 'prettierconfig' to format prettier
    "prettier.stylelintIntegration": false, //不让prettier使用stylelint的代码格式进行校验
    // "prettier.trailingComma": "es5", // 在对象或数组最后一个元素后面是否加逗号(在ES5中加尾逗号)
    "prettier.trailingComma": "none",
    "prettier.tslintIntegration": false,
    "terminal.integrated.allowMnemonics": true,
    "[vue]": {
        "editor.defaultFormatter": "esbenp.prettier-vscode"
    },
    "[tsx]": {
        "editor.defaultFormatter": "esbenp.prettier-vscode"
    },
    "[javascript]": {
        "editor.defaultFormatter": "esbenp.prettier-vscode"
    },
    "[typescript]": {
        "editor.defaultFormatter": "vscode.typescript-language-features"
    },
    "[html]": {
        "editor.defaultFormatter": "esbenp.prettier-vscode"
    },
    "editor.fontLigatures": false,
    "vetur.validation.template": false,
    "[json]": {
        "editor.defaultFormatter": "vscode.json-language-features"
    },
    "[jsonc]": {
        "editor.defaultFormatter": "vscode.json-language-features"
    },
    "files.associations": {
        "*.cjson": "jsonc",
        "*.wxss": "css",
        "*.wxs": "javascript",
        "x": "bat"
    },
    "emmet.includeLanguages": {
        "wxml": "html",
        "javascript": "javascriptreact"
    },
    "minapp-vscode.disableAutoConfig": true,
    "[css]": {
        "editor.defaultFormatter": "vscode.css-language-features"
    },
    "commentTranslate.source": "Bing",
    "liveServer.settings.port": 0,
    "eslint.nodeEnv": "",
    "editor.stickyScroll.enabled": true,
    "commentTranslate.targetLanguage": "zh-CN",
    "[javascriptreact]": {
        "editor.defaultFormatter": "esbenp.prettier-vscode"
    },
    "commentTranslate.hover.variable": true,
    "commentTranslate.hover.string": true,
    "powermode.combo.counterEnabled": "hide",
    "powermode.enabled": true,
    "tabnine.experimentalAutoImports": true,
    "workbench.iconTheme": "vscode-icons",
    "workbench.settings.applyToAllProfiles": [],
    "[typescriptreact]": {
        "editor.defaultFormatter": "esbenp.prettier-vscode"
        // "editor.defaultFormatter": "vscode.typescript-language-features"
    },
    "[Ini]": {
        "editor.defaultFormatter": "esbenp.prettier-vscode"
        // "editor.defaultFormatter": "vscode.typescript-language-features"
    },
    "liveServer.settings.donotShowInfoMsg": true,
    "workbench.colorTheme": "One Dark Pro Darker",
}

粘滞滚动设置

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值