search
HomeDevelopment ToolsVSCode[Compilation and summary] Commonly used plug-ins and useful configurations of VSCode (a must-read for beginners)

This article summarizes and shares some commonly used plug-ins and useful configurations of VSCode (super detailed). I hope it can give some help to friends who are just getting into the front-end. This article is very long. If you read it carefully, you will definitely gain something.

[Compilation and summary] Commonly used plug-ins and useful configurations of VSCode (a must-read for beginners)

If a worker wants to do his job well, he must first sharpen his tools. This article introduces some front-end entry-level plug-ins. The authors of these plug-ins have used them, compared them with some similar plug-ins, and recommended them based on whether the plug-ins are actively maintained.

Note: These plug-ins mainly focus on the front-end, and do not involve things like vue, react, etc. Some plug-ins of the framework also cannot speak c , python, etc.

Plug-in list

  • Chinese (Simplified) (简体中文)

  • Auto Rename Tag

  • open in browser

  • Prettier - Code formatter

  • Live Server

  • Path Intellisense

  • Image preview

  • Code Spell Checker

  • Better Comments

  • Easy LESS

  • Sass

  • Live Sass Compiler

  • jQuery Code Snippets

  • 14.JavaScript (ES6) code snippets

  • One Dark Pro

  • Material Theme

  • Tokyo Night

  • Material Icon Theme

  • vscode-icons

[Recommended learning: vscode tutorial, Programming teaching

01- Practical extension recommendations

1.Chinese (Simplified) (简体中文)

  • Applicable to VS Code’s Chinese (Simplified) language pack

[Compilation and summary] Commonly used plug-ins and useful configurations of VSCode (a must-read for beginners)

Needless to say, friends who are not good at English must install the Chinese plug-in. Those who are good at English can skip it. .

2.Auto Rename Tag

  • Synchronically modify HTML/XML tags

[Compilation and summary] Commonly used plug-ins and useful configurations of VSCode (a must-read for beginners)

[Compilation and summary] Commonly used plug-ins and useful configurations of VSCode (a must-read for beginners)

3.open in browser

  • Provides right-click menu options to open html files in the browser with one click.

[Compilation and summary] Commonly used plug-ins and useful configurations of VSCode (a must-read for beginners)

You can choose to open it in the default browser or choose the browser you want to use

[Compilation and summary] Commonly used plug-ins and useful configurations of VSCode (a must-read for beginners)

4.Prettier - Code formatter

  • The most popular front-end code formatting tool

[Compilation and summary] Commonly used plug-ins and useful configurations of VSCode (a must-read for beginners)

in the settings If you check the Format file when saving checkbox, you can ctrl s format the file after saving. No matter how messy the code is, the code will become neat and consistent. We can also configure related settings according to our own preferences, such as indentation. For the front end, it is recommended to indent two units. These are some commonly used configurations, remember to put them in the outermost braces of settings.json

{
  "printWidth": 130,// 最大换行长度
  "tabWidth": 2, // 保存后缩进单位
    "[html][css][less][scss][javascript][typescript][json][jsonc]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode",//设置prettier为默认格式化程序
    "editor.tabSize": 2 // 编辑时缩进单位
  },
}
[Compilation and summary] Commonly used plug-ins and useful configurations of VSCode (a must-read for beginners)

5.Live Server

Open a real-time local server

  • A very easy-to-use plug-in, every time After saving the file, you have to refresh the browser to see the latest changes. With this plug-in, you can monitor the changes in the file in real time and refresh automatically. It is really easy to use. I really want to thank the author who developed this plug-in.

[Compilation and summary] Commonly used plug-ins and useful configurations of VSCode (a must-read for beginners)

6.Path Intellisense

[Compilation and summary] Commonly used plug-ins and useful configurations of VSCode (a must-read for beginners)

Intelligent path completion

  • This plug-in has not been maintained for a long time, but recently, you can often see plug-in updates, and compared with some similar plug-ins, this plug-in is still very good.

[Compilation and summary] Commonly used plug-ins and useful configurations of VSCode (a must-read for beginners)

7.Image preview

  • 鼠标悬停可以预览图片

1[Compilation and summary] Commonly used plug-ins and useful configurations of VSCode (a must-read for beginners)

鼠标悬停可以预览图片,显示图片的大小和尺寸。不仅仅在css中,也可以在jsvue等文件中预览哦,可以打开对应的文件夹和项目文件为位置,真的强烈推荐!

1[Compilation and summary] Commonly used plug-ins and useful configurations of VSCode (a must-read for beginners)

"gutterpreview.showImagePreviewOnGutter": false,// 关闭在行号中显示缩列图

8.Code Spell Checker

  • 一个基本的拼写检查器,可以很好地与驼峰大小写代码配合使用。

1[Compilation and summary] Commonly used plug-ins and useful configurations of VSCode (a must-read for beginners)

1[Compilation and summary] Commonly used plug-ins and useful configurations of VSCode (a must-read for beginners)

9.Better Comments

  • 写出更个性化的注释

1[Compilation and summary] Commonly used plug-ins and useful configurations of VSCode (a must-read for beginners)

1[Compilation and summary] Commonly used plug-ins and useful configurations of VSCode (a must-read for beginners)

10.Easy LESS

实时编译lesscss

1[Compilation and summary] Commonly used plug-ins and useful configurations of VSCode (a must-read for beginners)

11.Sass

sass/scss文件必装的插件

[Compilation and summary] Commonly used plug-ins and useful configurations of VSCode (a must-read for beginners)

12.Live Sass Compiler

实时编译sass/scsscss

[Compilation and summary] Commonly used plug-ins and useful configurations of VSCode (a must-read for beginners)

13.jQuery Code Snippets

jquery代码提示

2[Compilation and summary] Commonly used plug-ins and useful configurations of VSCode (a must-read for beginners)

14.JavaScript (ES6) code snippets

es6等代码块,语法提示

2[Compilation and summary] Commonly used plug-ins and useful configurations of VSCode (a must-read for beginners)

02-外观美化插件推荐

1.主题插件

  • One Dark Pro  最受欢迎的暗黑主题

    [Compilation and summary] Commonly used plug-ins and useful configurations of VSCode (a must-read for beginners)

  • Material Theme  拥有非常多的主题,都很不错,也是有名的主题插件

    2[Compilation and summary] Commonly used plug-ins and useful configurations of VSCode (a must-read for beginners)

  • Tokyo Night     本人在用的一款主题,特别喜欢,不刺眼,色彩设计的很合理

    [Compilation and summary] Commonly used plug-ins and useful configurations of VSCode (a must-read for beginners)

  • ......

2.文件图标

  • Material Icon Theme 拥有超多的文件图标,色彩饱和度高。

    2[Compilation and summary] Commonly used plug-ins and useful configurations of VSCode (a must-read for beginners)

  • vscode-icons   也是非常不错的文件图标,下载量很高

    2[Compilation and summary] Commonly used plug-ins and useful configurations of VSCode (a must-read for beginners)

二、VSCode常用快捷键

VSCode 内置很多快捷键,可以大大的提高我们的开发效率。注意:这个快捷键都是可以自定义的,这里我们主要说说一些好用的默认快捷键。

这里推荐黑马前端pink老师 vscode快捷键-以及使用技巧  https://www.bilibili.com/read/cv9699783

三、VSCode一些好用的配置

01-彩虹括号

以前我们实现彩虹括号可能会用上一个插件叫Bracket Pair Colorizer 2,但是会产生性能问题,着色慢。vscode在2021 年 8 月(1.60 版)开始内置了这个功能,随之到来的还有垂直连线,亲测,现在已经非常好用了,效果出色,并且所有颜色都是可主题化的,最多可以配置六种颜色。

2[Compilation and summary] Commonly used plug-ins and useful configurations of VSCode (a must-read for beginners)

在如下打开settings.json,记住放在最外层的大括号里。

[Compilation and summary] Commonly used plug-ins and useful configurations of VSCode (a must-read for beginners)

[Compilation and summary] Commonly used plug-ins and useful configurations of VSCode (a must-read for beginners)

这是我认为比较好的配置,详细的配置可以参考vscode官方文档:

https://code.visualstudio.com/updates/v1_60#_high-performance-bracket-pair-colorization

 "editor.bracketPairColorization.enabled": true,
 "editor.guides.bracketPairs": "active",

02-javaScript参数名称提示

vscode在2021 年 8 月(1.60 版)中加入**JavaScript/TypeScript 嵌入提示**- 参数名称和类型的内联提示等,此设置不会自动打开,也就是说也是需要我们手动去配置的。总所周知,javaScript是弱类型语言,这些提示可以简单的帮助我们做一些错误检查,同时也让代码更直观、好看。

3[Compilation and summary] Commonly used plug-ins and useful configurations of VSCode (a must-read for beginners)

这是我的一些配置,详细的配置说明可以参考vscode官方文档:

https://code.visualstudio.com/updates/v1_60#_inlay-hints-for-javascript-and-typescript

  "javascript.inlayHints.parameterNames.enabled": "all",
  "javascript.inlayHints.variableTypes.enabled": false,

至此,本文结束。创作不易,本人第一次写博客,如果本篇文章对你有所帮助,希望可以点个赞,给个关注。

更多关于VSCode的相关知识,请访问:vscode教程!!

The above is the detailed content of [Compilation and summary] Commonly used plug-ins and useful configurations of VSCode (a must-read for beginners). For more information, please follow other related articles on the PHP Chinese website!

Statement
This article is reproduced at:掘金社区. If there is any infringement, please contact admin@php.cn delete
Choosing Between Visual Studio and VS Code: The Right Tool for YouChoosing Between Visual Studio and VS Code: The Right Tool for YouMay 09, 2025 am 12:21 AM

VisualStudio is suitable for large projects, VSCode is suitable for projects of all sizes. 1. VisualStudio provides comprehensive IDE functions, supports multiple languages, integrated debugging and testing tools. 2.VSCode is a lightweight editor that supports multiple languages ​​through extension, has a simple interface and fast startup.

Visual Studio: A Powerful Tool for DevelopersVisual Studio: A Powerful Tool for DevelopersMay 08, 2025 am 12:19 AM

VisualStudio is a powerful IDE developed by Microsoft, supporting multiple programming languages ​​and platforms. Its core advantages include: 1. Intelligent code prompts and debugging functions, 2. Integrated development, debugging, testing and version control, 3. Extended functions through plug-ins, 4. Provide performance optimization and best practice tools to help developers improve efficiency and code quality.

Visual Studio vs. VS Code: Pricing, Licensing, and AvailabilityVisual Studio vs. VS Code: Pricing, Licensing, and AvailabilityMay 07, 2025 am 12:11 AM

The differences in pricing, licensing and availability of VisualStudio and VSCode are as follows: 1. Pricing: VSCode is completely free, while VisualStudio offers free community and paid enterprise versions. 2. License: VSCode uses a flexible MIT license, and the license of VisualStudio varies according to the version. 3. Usability: VSCode is supported across platforms, while VisualStudio performs best on Windows.

Visual Studio: From Code to ProductionVisual Studio: From Code to ProductionMay 06, 2025 am 12:10 AM

VisualStudio supports the entire process from code writing to production deployment. 1) Code writing: Provides intelligent code completion and reconstruction functions. 2) Debugging and testing: Integrate powerful debugging tools and unit testing framework. 3) Version control: seamlessly integrate with Git to simplify code management. 4) Deployment and Release: Supports multiple deployment options to simplify the application release process.

Visual Studio: A Look at the Licensing LandscapeVisual Studio: A Look at the Licensing LandscapeMay 05, 2025 am 12:17 AM

VisualStudio offers three license types: Community, Professional and Enterprise. The Community Edition is free, suitable for individual developers and small teams; the Professional Edition is annually subscribed, suitable for professional developers who need more functions; the Enterprise Edition is the highest price, suitable for large teams and enterprises. When selecting a license, project size, budget and teamwork needs should be considered.

The Ultimate Showdown: Visual Studio vs. VS CodeThe Ultimate Showdown: Visual Studio vs. VS CodeMay 04, 2025 am 12:01 AM

VisualStudio is suitable for large-scale project development, while VSCode is suitable for projects of all sizes. 1. VisualStudio provides comprehensive development tools, such as integrated debugger, version control and testing tools. 2.VSCode is known for its scalability, cross-platform and fast launch, and is suitable for fast editing and small project development.

Visual Studio vs. VS Code: Comparing the Two IDEsVisual Studio vs. VS Code: Comparing the Two IDEsMay 03, 2025 am 12:04 AM

VisualStudio is suitable for large projects and Windows development, while VSCode is suitable for cross-platform and small projects. 1. VisualStudio provides a full-featured IDE, supports .NET framework and powerful debugging tools. 2.VSCode is a lightweight editor that emphasizes flexibility and extensibility, and is suitable for various development scenarios.

Visual Studio: Comparing Free and Paid OptionsVisual Studio: Comparing Free and Paid OptionsMay 02, 2025 am 12:09 AM

When choosing VisualStudio, the free version is suitable for individual developers and small teams, and the paid version is suitable for large enterprises and users who need advanced features. 1. The free CommunityEdition provides basic development tools for individuals and small teams. 2. Paid Professional and Enterprise Editions provide advanced features and support for business environments and large teams.

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version