Vue Intellisense is a powerful Visual Studio Code extension that provides dynamic snippets and quick actions for Vue Single File Components (SFCs). Enhance your Vue 3 development workflow with context-aware completions, auto-imports, and formatting quick fixes.
- Provides
script
,template
, andstyle
snippets
- Provides
component
snippets inside the<template>
block
- Provides
props
,emits
andslots
snippets inside the<script setup>
block
- Automatically imports and registers Vue components inserted through snippets
- Format multi-attribute elements of the
<template>
block as multi-line
- Format empty elements of the
<template>
block as self-closing
To get the best experience from this extension, we recommend installing the following tool:
While not strictly required, it will significantly improve your workflow.
This extension contributes the following settings:
-
vue-intellisense.SFC.api
- Description: The preferred API Style to use with your Single-File Components (SFCs)
- Type:
string
- Values:
Composition API
,Options API
- Default:
Composition API
-
vue-intellisense.SFC.useScriptSetup
- Description: Use
<script setup>
block in your SFC. Only applies withComposition API
- Type:
boolean
- Default:
true
- Description: Use
-
vue-intellisense.SFC.preprocessors.script
- Description: The preferred language pre-processor to use with the
script
blocks - Type:
string
- Values:
none
,ts
- Default:
ts
- Description: The preferred language pre-processor to use with the
-
vue-intellisense.SFC.preprocessors.template
- Description: The preferred language pre-processor to use with the
template
block - Type:
string
- Values:
none
,pug
- Default:
none
- Description: The preferred language pre-processor to use with the
-
vue-intellisense.SFC.preprocessors.style
- Description: The preferred language pre-processor to use with the
style
blocks - Type:
string
- Values:
none
,less
,postcss
,sass
,scss
,stylus
- Default:
none
- Description: The preferred language pre-processor to use with the
These settings are designed to enhance your development experience by providing more accurate and context-aware snippets.
- Improve auto import and registration of components
- Initial release
Contributions are welcome and encouraged
- Found a bug? Open an issue
- Have an idea or improvement? Create a pull request
MIT © Dayan Rey