精华内容
下载资源
问答
  • setting.json

    千次阅读 2021-04-01 11:42:48
    { //主题设置 "workbench.colorTheme": "Monokai", // 默认编辑器字号 "editor.fontSize": 14, //是否自动换行 "editor.wordWrap": "on", // tab几个缩进 "editor.tabSize": 2, // 文件自动保存 ...
    {
        //主题设置
        "workbench.colorTheme": "Monokai",
        // 默认编辑器字号
        "editor.fontSize": 14,
        //是否自动换行 
        "editor.wordWrap": "on",
        // tab几个缩进
        "editor.tabSize": 2,
        // 文件自动保存
        "files.autoSave": "afterDelay",
        // 自动格式化粘贴的代码
        "editor.formatOnPaste": true,
        // 在资源管理器删除内容时候是否进行用户提醒
        "explorer.confirmDelete": false,
        // 控制在资源管理器内拖放移动文件或文件夹时是否进行确认
        "explorer.confirmDragAndDrop": false,
        // 在资源管理器拖拽文件是否进行用户提醒
        "workbench.statusBar.visible": true,
        // 工作区缩放级别
        "window.zoomLevel": 0,
        // 重命名或移动文件时,启用或禁用自动更新导入路径
        "javascript.updateImportsOnFileMove.enabled": "always",
        // 启用/禁用导航路径
        "breadcrumbs.enabled": true,
        // 终端cmd字号
        "terminal.integrated.fontSize": 16,
        // 不检查缩进,保存后统一按设置项来设置
        "editor.detectIndentation": false,
        // 编辑器初始界面
        "workbench.startupEditor": "newUntitledFile",
        // 工作台状态栏是否可见
        "workbench.statusBar.feedback.visible":false,
        // 添加多个光标时候需要的快捷键
        "editor.multiCursorModifier": "ctrlCmd",
        // 自定义代码片段显示的位置
        "editor.snippetSuggestions": "top",
        "window.menuBarVisibility": "toggle",
        // 启用后,按下 TAB 键,将展开 Emmet 缩写。
        "emmet.triggerExpansionOnTab": true,
        // 控制编辑器在空白字符上显示符号的方式
        "editor.renderWhitespace": "all",
        // 控制编辑器是否应呈现空白字符
        "editor.renderControlCharacters": false,
        // 在文件和文件夹上显示错误和警告
        "problems.decorations.enabled": false,
        // html文件格式化程序
        "[html]": {
            "editor.defaultFormatter": "vscode.html-language-features",
            // 禁止eslint对html进行校验
            "editor.codeActionsOnSave": {
              "source.fixAll.eslint": false
            }
        },
        // "[javascript]": {
        //     "editor.defaultFormatter": "vscode.typescript-language-features"
        // },
    
        // vscode-fileheader  -----settings begin-----
    
        // 文件作者
        "fileheader.Author": "JiaoShouf2e",
        // 文件最后修改者
        "fileheader.LastModifiedBy": "JiaoShouf2e",
        
        // vscode-fileheader  -----settings end-----
    
        
        //stylelint   -----settings begin-----
    
        "css.validate": false,
        "less.validate": false,
        "scss.validate": false,
        "stylelint.enable": false,
    
        //stylelint   -----settings end-----
    
        // eslint   -----settings begin-----
    
        // 是否为JavaScript文件开启eslint检测
        "eslint.enable": true,
        // 保存之后进行lint
        "eslint.run": "onSave",
        // 是否启用eslint的调试模式
        "eslint.debug": true,
        // 保存文件时进行eslint修复(MacOS:快捷键是 command + s ),并不能修复所有问题,多数还是需要手动修复
        "editor.codeActionsOnSave":{
          "source.fixAll.eslint": true
        }
        // eslint   -----settings end-----
        
    }
    

    有想换工作的同学可以找我内推哦不低于15k(前端,java,测试)

    在这里插入图片描述

    展开全文
  • setting.json配置

    2021-11-25 16:33:55
    { "window.zoomLevel": 1, "terminal.integrated.rendererType": "dom", "editor.suggest.snippetsPreventQuickSuggestions": false, ... "*.cjson": "jsonc", "*.wxss": "css", "*.wxs": "javascript" },
    {
      "window.zoomLevel": 1,
      "terminal.integrated.rendererType": "dom",
      "editor.suggest.snippetsPreventQuickSuggestions": false,
      "files.associations": {
        "*.vue": "vue",
        "*.cjson": "jsonc",
        "*.wxss": "css",
        "*.wxs": "javascript"
      },
      "editor.formatOnType": true,
      "editor.formatOnPaste": true,
      "files.autoSave": "off",
      "emmet.includeLanguages": {
        "wxml": "html"
      },
      "workbench.editorAssociations": {
        "*.txt": "default"
      },
      "less.compile": {
        "outExt": ".wxss"
      },
      "px2rem.rootFontSize": 37.5,
      "px2rem.isNeedNotes": false,
      "editor.renderControlCharacters": true,
      "explorer.confirmDelete": false,
      "[html]": {
        "editor.defaultFormatter": "esbenp.prettier-vscode"
      },
      "eslint.autoFixOnSave": true,
      "editor.formatOnSave": true,
      "emmet.excludeLanguages": ["markdown"],
      "[git-commit]": {
        "editor.rulers": [72]
      },
      "prettier.singleQuote": true,
      "prettier.semi": false,
      "vetur.format.defauxltFormatter.js": "vscode-javascript",
      "javascript.format.insertSpaceBeforeFunctionParenthesis": true,
      "vetur.format.defaultFormatter.html": "js-beautify-html",
      "[go]": {
        "editor.insertSpaces": false
      },
      "explorer.confirmDragAndDrop": false,
      "workbench.statusBar.visible": true,
      "better-comments.tags": [
        {
          "tag": "!",
          "color": "#FF2D00",
          "strikethrough": false,
          "underline": false,
          "backgroundColor": "transparent",
          "bold": false,
          "italic": false
        },
        {
          "tag": "?",
          "color": "#3498DB",
          "strikethrough": false,
          "underline": false,
          "backgroundColor": "transparent",
          "bold": false,
          "italic": false
        },
        {
          "tag": "//",
          "color": "#474747",
          "strikethrough": true,
          "underline": false,
          "backgroundColor": "transparent",
          "bold": false,
          "italic": false
        },
        {
          "tag": "todo",
          "color": "#FF8C00",
          "strikethrough": false,
          "underline": false,
          "backgroundColor": "transparent",
          "bold": false,
          "italic": false
        },
        {
          "tag": "*",
          "color": "#98C379",
          "strikethrough": false,
          "underline": false,
          "backgroundColor": "transparent",
          "bold": false,
          "italic": false
        }
      ],
      "workbench.iconTheme": "material-icon-theme",
      "liveServer.settings.donotShowInfoMsg": true,
      "workbench.colorTheme": "The Best Theme",
      "editor.fontWeight": "200",
      "workbench.activityBar.visible": true,
      "editor.minimap.enabled": false,
      "breadcrumbs.enabled": false,
      "update.enableWindowsBackgroundUpdates": false,
      "update.mode": "none",
      // prettier-自动格式化代码
      "editor.formatOnSave": true,
      // prettier-设置 自动换行的width - 解决小程序换行报错问题  设置自动换行
      "prettier.printWidth": 500,
      // prettier-使用单引号
      "prettier.singleQuote": true,
      // prettier-不要分号
      "prettier.semi": false,
      // prettier- (x) => {} 箭头函数参数只有一个时是否要有小括号。avoid:省略括号
      "prettier.arrowParens": "avoid",
      //  prettier-在对象,数组括号与文字之间加空格 "{ foo: bar }"
      "prettier.bracketSpacing": true,
      "git.autofetch": true,
      "gitlens.gitCommands.closeOnFocusOut": true,
      "settingsSync.ignoredExtensions": [],
      "settingsSync.ignoredSettings": [],
      "cSpell.enableFiletypes": ["html"],
      "editor.suggestSelection": "first",
      "vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
      "varTranslation.translationEngine": "youdao",
      "minapp-vscode.disableAutoConfig": true,
      "[javascript]": {
        "editor.defaultFormatter": "esbenp.prettier-vscode"
      },
      "[vue]": {
        "editor.defaultFormatter": "esbenp.prettier-vscode"
      },
      "editor.accessibilitySupport": "off",
      "[json]": {
        "editor.defaultFormatter": "esbenp.prettier-vscode"
      },
      "workbench.productIconTheme": "fluent-icons",
      //powser mode 打字特效 插件 开始配置
      "powermode.enabled": false,
      //样式
      // 火焰
      // "powermode.presets": "flames",
      // 炸裂
      //  "powermode.presets": "exploding-rift",
      // 爆炸
      //  "powermode.presets": "simple-rift",
      // 粒子
      "powermode.presets": "particles",
      //  烟花
      //  "powermode.presets": "fireworks",
      // 魔法
      //  "powermode.presets": "magic",
      // 回形针
      //  "powermode.presets": "clippy",
      // 时间间隔
      //  "powermode.comboTimeout": 0,
      // 抖动
      //  "powermode.enableShake": false,
      //  "powermode.enableShake": true,
      // 随字体颜色变化
      //"powermode.backgroundMode": "mask",
      "tabnine.experimentalAutoImports": true,
      // 结束配置
      "vetur.format.defaultFormatter.js": "prettier",
      "tabnine.experimentalAutoImports": true,
      "vetur.ignoreProjectWarning": true,
      "[typescript]": {
        "editor.defaultFormatter": "esbenp.prettier-vscode"
      },
      "editor.codeActionsOnSave": {
        "source.fixAll.eslint": true
      }
    }
    
    展开全文
  • vscode这个编辑器,前端工作人员使用的非常多,我也是经常使用,每次在新的电脑上使用时都要重新写setting.json配置,感觉很麻烦,就写了这篇文章记录下自己的一些常用配置。顺便说一句,setting.json配置没有最好的...

    vscode这个编辑器,前端工作人员使用的非常多,我也是经常使用,每次在新的电脑上使用时都要重新写setting.json配置,感觉很麻烦,就写了这篇文章记录下自己的一些常用配置。顺便说一句,setting.json配置没有最好的,只有最适合自己的。

    {
      "workbench.iconTheme": "material-icon-theme",
      "files.associations": {
        "*.wpy": "vue",
        "*.cjson": "jsonc",
        "*.wxss": "css",
        "*.wxs": "javascript"
      },
      "emmet.includeLanguages": {
        "wxml": "html"
      },
      "editor.formatOnSave": false,
      "editor.codeActionsOnSave": {
        "source.fixAll.eslint": true
      },
      "editor.fontSize": 14,
      "editor.tabSize": 2,
      "prettier.tabWidth": 2,
      "prettier.singleQuote": true,
      "javascript.updateImportsOnFileMove.enabled": "always",
      "[html]": {
        "editor.defaultFormatter": "esbenp.prettier-vscode"
      },
      "[javascript]": {
        "editor.defaultFormatter": "esbenp.prettier-vscode"
      },
      "[javascriptreact]": {
        "editor.defaultFormatter": "esbenp.prettier-vscode"
      },
      "[json]": {
        "editor.defaultFormatter": "esbenp.prettier-vscode"
      },
      "files.autoSave": "off",
      "eslint.codeAction.showDocumentation": {
        "enable": true
      },
      "window.zoomLevel": 1,
      "[vue]": {
        "editor.defaultFormatter": "octref.vetur"
      },
    "http.proxyAuthorization": null,
      "bracketPairColorizer.depreciation-notice": false,
      "editor.unicodeHighlight.invisibleCharacters": false,
      "editor.suggest.snippetsPreventQuickSuggestions": false,
      "fileheader.customMade": {    //此为头部注释--需要先下载注释插件korofileheader,快捷键查看(快捷键方式搜索 cursortip)
        "Description":"",
        "Author":"",
        "Date": "Do not edit", // 文件创建时间(不变)
        "LastEditors": "", // 文件最后编辑者
        "LastEditTime": "Do not edit", // 文件最后编辑时间
      },
      "fileheader.cursorMode": {  //此为函数注释
        "description":"",
        "author":"", // 注释编辑者
        "Date": "Do not edit",
      },
      "fileheader.configObj": {
        "autoAdd": false, // 文件没有注释的时候,保存时自动添加
        "createHeader": false , // 创建文件自动添加注释
      }
    
    }

    二、个人常用插件

    1、Auto Close Tag(自动补全 html 标签)

    2、Auto Rename Tag(自动完成另一侧标签的同步修改)

    3、Babel ES6/ES7

    4、Bracket Pair Colorizer(为多个括号添加不同的颜色)

    5、Chinese(汉化)

    6、Debugger for Chrome

    7、ESLint

    8、GitLens — Git supercharged(git提交日志)

    9、HTML CSS Support

    10、HTML Snippets

    11、Highlight Matching Tag

    12、IntelliSense for CSS class names in HTML

    13、JavaScript (ES6) code snippets(ES6语法智能提示)

    14、Material Icon Theme

    15、npm Intellisense

    16、open in browser

    17、Path Intellisense

    18、Windows Colors(每个vscode窗口自动着色)

    19、Prettier - Code formatter

    20、React Native Tools

    21、React/Redux/react-router Snippets

    22、SVG Viewer

    23、Trailing Spaces

    24、Vetur

    25、settings sync(设置同步插件,个人不太喜欢使用这个插件)

    展开全文
  • vscode setting.json 配置个人开发配置

    标题 Vscode seetting.json 配置

    在这里插入代码片
    ```{
        "workbench.editor.enablePreview": false, //打开文件不覆盖
        "search.followSymlinks": false, //关闭rg.exe进程
        "editor.minimap.enabled": false, //关闭快速预览
        "liveServer.settings.donotShowInfoMsg": true, //关闭liveserver提示
        "files.autoSave": "afterDelay", //打开自动保存
        "editor.fontSize": 16, //设置文字大小
        "editor.lineHeight": 24, //设置文字行高
        "editor.lineNumbers": "on", //开启行数提示
        "editor.quickSuggestions": { //开启自动显示建议
            "other": true,
            "comments": true,
            "strings": true
        }, // 调整窗口的缩放级别
        "editor.tabSize": 2, //每次保存自动格式化
        "prettier.semi": false, //去掉代码结尾的分号
        "prettier.singleQuote": true, //使用带引号替代双引号
        "javascript.format.insertSpaceBeforeFunctionParenthesis": true, //让函数(名)和后面的括号之间加个空格
        "vetur.format.defaultFormatter.html": "js-beautify-html", //格式化.vue中html
        "vetur.format.defaultFormatter.js": "vscode-typescript", //让vue中的js按编辑器自带的ts格式进行格式化
        "vetur.format.defaultFormatterOptions": {
            "js-beautify-html": {
                "wrap_attributes": "force-aligned" //属性强制折行对齐
            }
        },
        "editor.codeActionsOnSave": {
            "source.fixAll.eslint": true
        },
        "editor.suggestSelection": "first",
        "vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
        "java.configuration.checkProjectSettingsExclusions": false,
        "java.errors.incompleteClasspath.severity": "ignore",
        "breadcrumbs.enabled": true,
        "editor.renderControlCharacters": false,
        "vetur.validation.template": false,
        "eslint.codeAction.showDocumentation": {
            "enable": true
        },
        "eslint.run": "onType",
        "eslint.options": {
            "extensions": [
                ".js",
                ".vue",
                ".jsx",
                ".tsx"
            ]
        },
        "less.compile": {
            "outExt": ".wxss"
        },
        // 隐藏文件配置
        "files.exclude": {
            "**/.git": true,
            "**/.svn": true,
            "**/.hg": true,
            "**/CVS": true,
            "**/.DS_Store": true,
            // 隐藏node包
            "**/node_modules/": true,
            "dist": true,
        },
        "vsicons.dontShowNewVersionMessage": true,
        "[json]": {
        
            "editor.quickSuggestions": {
                "strings": true
            },
            "editor.suggest.insertMode": "replace",
            "gitlens.codeLens.scopes": [
                "document"
            ]
        },
        "window.zoomLevel": -1,
        "cssrem.rootFontSize": 50,
        "security.workspace.trust.untrustedFiles": "open",
        "editor.formatOnPaste": true,
        "editor.formatOnSave": true,
        "pxremUnit": 50,
        "files.saveConflictResolution": "overwriteFileOnDisk",
        
    }
     ![在这里插入图片描述](https://img-blog.csdnimg.cn/cd921f6522ea4f86a1375b358d5546e1.png?x-oss-process=image/watermark,type_d3F5LXplbmhlaQ,shadow_50,text_Q1NETiBAQS5YLkM=,size_20,color_FFFFFF,t_70,g_se,x_16#pic_center)
    ![在这里插入图片描述](https://img-blog.csdnimg.cn/6aacc22b609d403484de93cf81fbef80.png?x-oss-process=image/watermark,type_d3F5LXplbmhlaQ,shadow_50,text_Q1NETiBAQS5YLkM=,size_20,color_FFFFFF,t_70,g_se,x_16#pic_center)
    
    
    展开全文
  • 设置中的setting.json { "emmet.includeLanguages": { "vue-html": "html", "javascript": "javascriptreact" }, "eslint.enable": false, "files.autoSave": "afterDelay", "git.autofetch": true, ...
  • { // "latex-workshop.latex.recipes": [ // { // "name": "xelatex", // "tools": [ // "xelatex" // ] // }, // { // "name": "xe*2", // "tools": [ // "xelatex", // ...
  • Vscode setting.json配置

    2021-05-18 11:41:00
    { "*.cjson": "jsonc", "*.wxss": "css", "*.wxs": "javascript" }, "emmet.includeLanguages": { "wxml": "html" }, "minapp-vscode.disableAutoConfig": true, "editor.tabSize": 2, "explorer.confirmDelete": ...
  • eslint的setting.json配置

    2021-03-08 14:37:39
    vscode中eslint的setting.json配置,如下:{"workbench.editor.enablePreview": false, //打开文件不覆盖"search.followSymlinks": false, //关闭rg.exe进程"editor.minimap.enabled": false, //关闭快速预览"live...
  • 2、打开vscode 选择 文件->首选项->设置 3、搜索vetur.format.defaultFormatterOptions,之后在setting.json中编辑 4、ctrl + s 保存 ,设置默认Vetur 不足:vue中的js无法配置单双引号,句尾分号 settings.json: /...
  • { "latex-workshop.latex.recipes": [{ "name": "xelatex", "tools": [ "xelatex" ] }, { "name": "latexmk", "tools": [ "latexmk" ] }, { "name": "pdflatex -> bibtex ->... "bibtex
  • Eslint setting.json的配置

    2021-05-31 20:09:04
    "explorer.confirmDragAndDrop": false, "explorer.confirmDelete": false, //配置eslint "editor.formatOnSave": false, // 添加vue支持 "eslint.validate": [ "javascript", "javascriptreact", ...
  • vscode配置setting.json文件

    千次阅读 2021-01-09 21:32:05
    { //主题颜色 "workbench.colorTheme": "Solarized Dark", "terminal.integrated.rendererType": "dom", // "editor.fontSize": 15, //失去焦点后自动保存 // "files.autoSave": "onFocusChange", ...
  • language-features" }, "[json]": { "editor.defaultFormatter": "vscode.json-language-features" }, "editor.quickSuggestions": { "strings": true }, "terminal.integrated.automationShell.linux": "", "cSpell...
  • 1.ctrl +shift +p 2.输入setting 3.找到这一项
  • 这篇文章主要介绍了vscode配置setting.json文件实现eslint自动格式代码,本文通过实例代码给大家介绍的非常详细,对大家的学习或工作具有一定的参考借鉴价值,需要的朋友可以参考下一、ESlint+Vetur 实现ESlint代码...
  • { // vscode默认启用了根据文件类型自动设置tabsize的选项 “editor.detectIndentation”: false, // 重新设定tabsize “editor.tabSize”: 4, // #值设置为true时,每次保存的时候自动格式化;...
  • 打开settings.json配置 command palette打开:(all command:json) 调整编辑器 例如行间距(行高) editor.lineHeight:value
  • "remimarsal.prettier-now" }, "json.schemas": [ { "fileMatch": [ "/myfile" ], "url": "schemaURL" } ], "files.autoSave": "afterDelay", "tabnine.experimentalAutoImports": true, "path-intellisense....
  • 接下来是在setting.json中的配置: 首先按cirl+shift+p,输入open setting 点击进入,将下面代码复制代替原代码 { "editor.fontSize": 16, "eslint.autoFixOnSave": true, "fileheader.LastModifiedBy": ...
  • 在vscode中下载完easyless插件并启用 打开setting.json文件,配置less.compile属性,却显示是一个未知的属性??? 书写一个less文件并按ctrl+s保存,vs code没反应,并没有生成一个.css文件 保存前: 保存后: 希望...
  • vscode" }, "[jsonc]": { "editor.defaultFormatter": "esbenp.prettier-vscode" }, "[json]": { "editor.defaultFormatter": "esbenp.prettier-vscode" }, "fileheader.Author": "admin", "fileheader.LastModified...
  • 1、VSCode中setting.json的两种配置位置 VSCode 提供设置setting.json的两种方式: User Settings(用户设置) - Settings that apply globally to any instance of VS Code you open.(用户区,即全局,关联于用户...
  • vscode setting.json配置

    2021-07-06 15:22:15
    2.下面是我的vscode setting.json的配置,每一行包括注释 不同模块使用横线分开 { //----------------------------------------- // 工作界面的设置 // 界面主题选择 "workbench.colorTheme": "Solarized Light
  • // To learn more about actions and keybindings, visit https://aka.ms/terminal-keybindings  "actions": [ // Copy and paste are bound to Ctrl+Shift+C and Ctrl+Shift+V in your defaults.json. // These ...
  • 在vscode中打开设置文件setting.json时,问题窗口会报警告,如下图所示。. Ctrl + C 复制下警告信息,粘贴到txt中,显示如下: { “resource”: “/C:/Users/xu/AppData/Roaming/Code/User/settings.json”, ...
  • vscode setting.json

    2021-10-29 18:10:53
    ": { "editor.defaultFormatter": "esbenp.prettier-vscode" }, "[jsonc]": { "editor.defaultFormatter": "esbenp.prettier-vscode" }, "[json]": { "editor.defaultFormatter": "esbenp.prettier-vscode" }, "[vue...
  • VsCode setting.json Eslint

    2021-10-13 10:42:30
    "background-size": "100%,100%", //图片大小 "opacity": 0.1 //透明度 }, "background.useFront": true, "background.useDefault": false, "[json]": { "editor.quickSuggestions": { "strings": true }, "editor....
  • setting.json { "minapp-vscode.disableAutoConfig": true, // emmet "emmet.includeLanguages": { "wxml": "html" }, "emmet.syntaxProfiles": { "vue-html":"html", "vue":"html" }, // git "git....
  • 感觉没什么用】 9.Colonize:在行尾添加分号,在行尾添加换行符【不太喜欢这种格式的】 10.env-cmd-file-syntax:在.env的文件中语法高亮【好像也不咋实用】 setting.json内容备份===>> { “window.zoomLevel”: 1, ...
  • 以eslint为准的VS Code 格式化setting.json { // vscode默认启用了根据文件类型自动设置tabsize的选项 "editor.detectIndentation": false, // 重新设定tabsize "editor.tabSize": 2, // #每次保存的时候自动...

空空如也

空空如也

1 2 3 4 5 ... 20
收藏数 60,895
精华内容 24,358
关键字:

setting.json