A, IntelliJ IDEA supports file .vue
Installation vue.js
- file -> settings -> plugins, enter
vue
, click on the right side of the search results vue.jsinstall
button to install the restart after a successful idea, this idea can be identified .vue files
Set new document template vue
file-->setting-->editor-->file and code Templates
, SelectVue File
, and then you can edit the default template content box on the right, you have finished editing click "ok".- This file can be created by new options .vue
Two, idea Set vue grammar tips
File->setting->Editor->Inspections
The right to findHTML->Unknown HTML tag attribute
, on the rightOptions->Custom HTML tag attributes
, add the following code inside:
@tap
@tap.stop
@tap.prevent
@tap.once
@click
@click.stop
@click.prevent
@click.once
@change
@change.lazy
@change.number
@change.trim
@on
@blur
@fous
@submit
scoped
v-model
v-model.number
v-model.trim
v-for
v-text
v-html
v-show
v-if
v-else-if
v-else
v-pre
v-bind
v-bind:class
v-bind:style
v-bind:id
v-bind:href
As shown below:
File->setting->Editor->File Types
Found insideHTML
, theRegistered Patterns
added which*.vue
can, as shown:
- effect
Three, idea code hints shortcut keys
File->setting->keymap->Main Menu