Home  >  Article  >  Development Tools  >  [Organization and Sharing] 6 VSCode plug-ins necessary for Vue3 development

[Organization and Sharing] 6 VSCode plug-ins necessary for Vue3 development

青灯夜游
青灯夜游forward
2022-08-11 19:49:149373browse

This article will share with you 6 Vue3 necessary VSCode plug-ins for development. You can directly install and use them through the VSCode plug-in center. I hope it will be helpful to everyone. !

[Organization and Sharing] 6 VSCode plug-ins necessary for Vue3 development

1. [Organization and Sharing] 6 VSCode plug-ins necessary for Vue3 development

1.53 million downloads

Believe in using VSCode to develop Vue2 students must be familiar with the Vetur plug-in. As a VSCode plug-in supporting Vue2, its main function is to provide highlighting, syntax support and syntax detection for Vue single-file components. (Learning video sharing: vue video tutorial)

With the release of the official version of Vue3, the Vue team officially recommends the [Organization and Sharing] 6 VSCode plug-ins necessary for Vue3 development plug-in to replace the Vetur plug-in, which not only supports Vue3 language highlighting and grammar detection, TypeScript and vue-tsc-based type checking functions are also supported.

[Organization and Sharing] 6 VSCode plug-ins necessary for Vue3 development

Note when using:

  • First disable the Vetur plug-in to avoid conflicts;

  • It is recommended to use css/less/scss as the language of <style></style>, because these are based on vscode-css-language The service provides reliable language support;

  • If you use postcss/stylus/sass, you need to install additional Syntax highlighting extension. postcss uses language-postcss, stylus uses language-stylus extension, and sass uses Sass extension;

  • [Organization and Sharing] 6 VSCode plug-ins necessary for Vue3 development does not include ESLint and Prettier, and the official ESLint and Prettier extensions support Vue, so you need to do it yourself Install.

2. Vue VSCode Snippets

1.52 million downloads

Vue VSCode Snippets plug-in purpose In order to provide developers with the simplest and fastest way to generate Vue code snippets, various code snippets can be quickly generated in the .vue file through various shortcut keys. It is simply a must-have artifact for Vue3 development.

This plug-in supports: [Organization and Sharing] 6 VSCode plug-ins necessary for Vue3 development, Vue2 and Vue3.

Vue VSCode Snippets

The usage method is as follows:

  • Create a new .vue file, enter vbase and you will be prompted Generated template content:

Vue VSCode Snippets

  • Enter vfor to quickly generate v-for command template:

Vue VSCode Snippets

  • Inputv3onmountedQuickly generateonMountedLife cycle function:

Vue VSCode Snippets

The rest will not be demonstrated. The function is too powerful and there are many commonly used shortcut keys. You can check the documentation for details.

3. Auto Close Tag

7.69 million downloads

The Auto Close Tag plug-in is a very useful VS Code extension, it has a big impact on productivity. As the name suggests, when we type the closing bracket in the closing tag, it will add the closing tag. It supports HTML, Handlebars, XML, PHP, Vue, JavaScript, Typescript, JSX and more.

Vue VSCode Snippets

4. Vue Peek

490,000 downloads

Vue Peek plug-in It is used to expand the Vue code editing experience and allows us to quickly jump to files defined by components and modules.

Vue Peek

Usage is as follows:

  • Right-click the component label and jump to the component definition file:

Vue Peek

  • Right-click the component label, and a pop-up window will display the component definition file:

Vue Peek

5. Vue Theme

340,000 downloads

The Vue Theme plug-in provides a good Vue theme, and also supports the configuration of different colors, which feels pretty good.

Vue Theme

6. [Organization and Sharing] 6 VSCode plug-ins necessary for Vue3 development

89,000 downloads

The [Organization and Sharing] 6 VSCode plug-ins necessary for Vue3 development plug-in allows Once we open the project, we can automatically start the development server, allowing developers to preview and debug the application without leaving the editor. Supports one-click start, build and restart projects.

[Organization and Sharing] 6 VSCode plug-ins necessary for Vue3 development

Summary

The 6 plug-ins shared today can be installed and used as needed.

I strongly recommend the practical [Organization and Sharing] 6 VSCode plug-ins necessary for Vue3 development and Vue VSCode Snippets plug-ins.

For more knowledge about VSCode, please visit: vscode tutorial!

The above is the detailed content of [Organization and Sharing] 6 VSCode plug-ins necessary for Vue3 development. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:segmentfault.com. If there is any infringement, please contact admin@php.cn delete