[vscode] Introduction to commonly used plug-ins in vscode

1. Angular Snippets (angular fragments)

Insert image description here
This extension adds Angular code snippets for TypeScript and HTML.

2. Auto Close Tag

Insert image description here
Automatically add HTML/XML closing tags.

3. Auto Rename Tag (automatic rename tag)

Insert image description here
Automatically rename pairs of HTML/XML tags.

3. Bracket Pair Colorizer 2 (bracket pair color)

Insert image description hereA customizable extension for coloring matching brackets, v2 uses the same bracket parsing engine as VSCode, greatly improving speed and accuracy. A new version was released because the settings were cleaned up and backwards compatibility was broken.

4. Chinese (Simplified) Language Pack for Visual Studio Code

Insert image description here
Simplified Chinese (Simplified Chinese) language pack for Visual Studio Code. This Chinese (Simplified Chinese) language pack provides a localized interface for VS Code.

5. Code Runner (code runner)

Insert image description here
Insert image description here

6. Code Spell Checker

Insert image description here
A basic spell checker for camelCase code. The goal of this spell checker is to help catch common spelling errors while keeping the number of false positives low.

7. Color Highlight

Insert image description here
This extended style can be used to find css/web colors in your document.

8、ESLint

Insert image description here

9. IntelliSense for CSS class names in HTML (intelligent sensing of CSS class names in HTML)

Insert image description here
class A Visual Studio Code extension that provides CSS class name completion for HTML attributes based on definitions found in the workspace or external files referenced through the link element.

10. JavaScript (ES6) code snippets (JavaScript (ES6) code snippets)

Insert image description here
Insert image description here

11. Live Server (local server)

Insert image description here
Insert image description here

12. Material Icon Theme (material icon theme)

Insert image description here
Add Material Design icons to your VS Code.

13. open in browser (open in browser)

Insert image description here
Allows the current file to be opened in the default browser or application.

14. Path Intellisense

Insert image description here
Visual Studio Code plugin to autocomplete file names.

15. Prettier - Code formatter (Prettier - Code formatter)

Insert image description here

16. Turbo Console Log

Insert image description here
Make debugging easier by automating the act of writing meaningful log messages.

17. Vue Language Features (Volar) (vue language feature volar)

Insert image description here
VueLF is a language support plugin built specifically for Vue 3. It calculates everything on demand based on @vue/reactivity, achieving native TypeScript language service level performance.

18. One Dark Pro (code theme plug-in)

Insert image description here
Atom's iconic One Dark theme is also one of the most installed themes for VS Code!

19. jsdoc comment plug-in

Insert image description here
Convenient function to generate header annotations and annotations, supports simple and convenient language functions, flexible, multi-functional document, easy to use!
Add the following to the vscode setting configuration item:

// 头部注释
"fileheader.customMade": {
    
    
    // Author字段是文件的创建者 可以在specialOptions中更改特殊属性
    // 公司项目和个人项目可以配置不同的用户名与邮箱 搜索: gitconfig includeIf  比如: https://ayase.moe/2021/03/09/customized-git-config/
    // 自动提取当前git config中的: 用户名、邮箱
    "Author": "git config user.name && git config user.email", // 同时获取用户名与邮箱
    // "Author": "git config user.name", // 仅获取用户名
    // "Author": "git config user.email", // 仅获取邮箱
    // "Author": "OBKoro1", // 写死的固定值 不从git config中获取
    "Date": "Do not edit", // 文件创建时间(不变)
    // LastEditors、LastEditTime、FilePath将会自动更新 如果觉得时间更新的太频繁可以使用throttleTime(默认为1分钟)配置更改更新时间。
    "LastEditors": "git config user.name && git config user.email", // 文件最后编辑者 与Author字段一致
    // 由于编辑文件就会变更最后编辑时间,多人协作中合并的时候会导致merge
    // 可以将时间颗粒度改为周、或者月,这样冲突就减少很多。搜索变更时间格式: dateFormat
    "LastEditTime": "Do not edit", // 文件最后编辑时间
    // 输出相对路径,类似: /文件夹名称/src/index.js
    "FilePath": "Do not edit", // 文件在项目中的相对路径 自动更新
    // 插件会自动将光标移动到Description选项中 方便输入 Description字段可以在specialOptions更改
    "Description": "", // 介绍文件的作用、文件的入参、出参。
    // custom_string_obkoro1~custom_string_obkoro100都可以输出自定义信息
    // 可以设置多条自定义信息 设置个性签名、留下QQ、微信联系方式、输入空行等
    "custom_string_obkoro1": "", 
    // 版权声明 保留文件所有权利 自动替换年份 获取git配置的用户名和邮箱
    // 版权声明获取git配置, 与Author字段一致: ${git_name} ${git_email} ${git_name_email}
    "custom_string_obkoro1_copyright": "Copyright (c) ${now_year} by ${git_name_email}, All Rights Reserved. "
    // "custom_string_obkoro1_copyright": "Copyright (c) ${now_year} by 写死的公司名/用户名, All Rights Reserved. "
},
// 函数注释
"fileheader.cursorMode": {
    
    
    "description": "", // 函数注释生成之后,光标移动到这里
    "param": "", // param 开启函数参数自动提取 需要将光标放在函数行或者函数上方的空白行
    "return": "",
},
// 插件配置项
"fileheader.configObj": {
    
    
    "autoAdd": true, // 检测文件没有头部注释,自动添加文件头部注释
    "autoAddLine": 100, // 文件超过多少行数 不再自动添加头部注释
    "autoAlready": true, // 只添加插件支持的语言以及用户通过`language`选项自定义的注释
    "supportAutoLanguage": [], // 设置之后,在数组内的文件才支持自动添加
   // 自动添加头部注释黑名单
   "prohibitAutoAdd": [
      "json"
    ],
   "prohibitItemAutoAdd": [ "项目的全称禁止项目自动添加头部注释, 使用快捷键自行添加" ],
   "folderBlacklist": [ "node_modules" ], // 文件夹或文件名禁止自动添加头部注释
   "wideSame": false, // 头部注释等宽设置
   "wideNum": 13,  // 头部注释字段长度 默认为13
    "functionWideNum": 0, // 函数注释等宽设置 设为0 即为关闭
   // 头部注释第几行插入
    "headInsertLine": {
    
    
      "php": 2 // php文件 插入到第二行
    },
    "beforeAnnotation": {
    
    }, // 头部注释之前插入内容
    "afterAnnotation": {
    
    }, // 头部注释之后插入内容
    "specialOptions": {
    
    }, // 特殊字段自定义 比如: Author、LastEditTime、LastEditors、FilePath、Description、Date等
    "switch": {
    
    
      "newlineAddAnnotation": true // 默认遇到换行符(\r\n \n \r)添加注释符号
    },
    "moveCursor": true, // 自动移动光标到Description所在行
    "dateFormat": "YYYY-MM-DD HH:mm:ss",
    "atSymbol": ["@", "@"], // 更改所有文件的自定义注释中的@符号
    "atSymbolObj": {
    
    }, //  更改单独语言/文件的@
    "colon": [": ", ": "], // 更改所有文件的注释冒号
    "colonObj": {
    
    }, //  更改单独语言/文件的冒号
    "filePathColon": "路径分隔符替换", // 默认值: mac: / window是: \
    "showErrorMessage": false, // 是否显示插件错误通知 用于debugger
    "writeLog": false, // 错误日志生成
    "CheckFileChange": false, // 单个文件保存时进行diff检查
    "createHeader": false, // 新建文件自动添加头部注释
    "useWorker": false, // 是否使用工作区设置
    "designAddHead": false, // 添加注释图案时添加头部注释
    "headDesignName": "random", // 图案注释使用哪个图案 
    "headDesign": false, // 是否使用图案注释替换头部注释
    // 自定义配置是否在函数内生成注释 不同文件类型和语言类型
    "cursorModeInternalAll": {
    
    }, // 默认为false 在函数外生成函数注释
    "openFunctionParamsCheck": true, // 开启关闭自动提取添加函数参数
    "functionParamsShape": ["{", "}"], // 函数参数外形自定义 
    // "functionParamsShape": "no type" 函数参数不需要类型
    "functionBlankSpaceAll": {
    
    }, // 函数注释空格缩进 默认为空对象 默认值为0 不缩进
    "functionTypeSymbol": "*", // 参数没有类型时的默认值
    "typeParamOrder": "type param", // 参数类型 和 参数的位置自定义
    "NoMatchParams": "no show param", // 没匹配到函数参数,是否显示@param与@return这两行 默认不显示param
    "functionParamAddStr": "", // 在 type param 后面增加字符串 可能是冒号,方便输入参数描述
    // 自定义语言注释,自定义取消 head、end 部分
    // 不设置自定义配置language无效 默认都有head、end
    "customHasHeadEnd": {
    
    }, // "cancel head and function" | "cancel head" | "cancel function" 
    "throttleTime": 60000, // 对同一个文件 需要过1分钟再次修改文件并保存才会更新注释
     // 自定义语言注释符号,覆盖插件的注释格式
    "language": {
    
    
        // js后缀文件
        "js": {
    
    
            "head": "/$$",
            "middle": " $ @",
            "end": " $/",
            // 函数自定义注释符号:如果有此配置 会默认使用
            "functionSymbol": {
    
    
              "head": "/******* ", // 统一增加几个*号
              "middle": " * @",
              "end": " */"
            },
            "functionParams": "typescript" // 函数注释使用ts语言的解析逻辑
        },
       // 一次匹配多种文件后缀文件 不用重复设置
       "h/hpp/cpp": {
    
    
          "head": "/*** ", // 统一增加几个*号
          "middle": " * @",
          "end": " */"
        },
        // 针对有特殊要求的文件如:test.blade.php
        "blade.php":{
    
    
          "head": "<!--",
          "middle": " * @",
          "end": "-->",
        }
    },
 // 默认注释  没有匹配到注释符号的时候使用。
 "annotationStr": {
    
     
      "head": "/*",
      "middle": " * @",
      "end": " */",
      "use": false
    },
}
``

Guess you like

Origin blog.csdn.net/qq_42146383/article/details/123558977