Today, I will share 6 VSCode extensions necessary for Vue3 development, which can be installed and used directly through the VSCode extension center.
If you find it helpful, please like and support it~
🔥 1.53 million downloads+
I believe that students who use VSCode to develop Vue2 must be familiar with the Vetur extension. As a VSCode extension supporting Vue2, its main function is to provide highlighting, syntax support and syntax detection for Vue single-file components.
With the release of the official version of Vue3, the Vue team officially recommends the Volar extension to replace the Vetur extension, which not only supports Vue3 language highlighting, syntax detection, Also supports TypeScript and type checking based on vue-tsc.
Note when using:
- First, disable the Vetur extension to avoid conflicts;
- It is recommended to use
scssas the language for
<style>, because these are based on vscode-css-language the service provides reliable language support;
- If using
sass, additional syntax highlighting extensions need to be installed. postcss uses language-postcss, stylus uses language-stylus extension, sass uses Sass extension;
- Volar does not contain ESLint and Prettier, while the official ESLint and Prettier extension supports Vue, so you need to install it yourself.
🔥 1.52 million downloads+
Vue VSCode Snippets extension aims to provide developers with the easiest and fastest way to generate Vue code snippets, through various shortcuts key to quickly generate various code snippets in
.vue files. It is simply a must-have artifact for Vue3 development.
This extension supports: Volar, Vue2 and Vue3.
It is used as follows:
- Create a
.vuefile and enter
vbaseto prompt the generated template content:
vforto quickly generate a
v3onmountedto quickly generate the
Others will not be demonstrated anymore. The functions are too powerful, and there are many commonly used shortcut keys. For details, you can check the document.
🔥 7.69 million downloads+
🔥 490k+ downloads
Vue Peek Extension is used to expand the Vue code editing experience, allowing us to quickly jump to the files defined by components and modules.
It is used as follows:
- Right-click the component label to jump to the component definition file:
- Right-click the component label, and a pop-up window displays the file defined by the component:
🔥 340k downloads+
Vue Theme extension provides a good Vue theme, and also supports configuring different colors, which feels pretty good.
🔥 89k+ downloads
The Vite extension allows us to automatically start the development server after opening the project, allowing developers to preview and debug the application without leaving the editor . Support one-click to start, build and restart projects.
The 6 extensions shared today can be installed and used as needed.
If you have a better extension, welcome to comment and share~🔥