IntelliJ IDEA setting vue support

A, IntelliJ IDEA supports file .vue

Installation vue.js

  • file -> settings -> plugins, enter vue, click on the right side of the search results vue.js installbutton to install the restart after a successful idea, this idea can be identified .vue files
    Here Insert Picture Description

Set new document template vue

  • file-->setting-->editor-->file and code Templates, Select Vue File, and then you can edit the default template content box on the right, you have finished editing click "ok".Here Insert Picture Description
  • This file can be created by new options .vue
    Here Insert Picture Description

Two, idea Set vue grammar tips

  • File->setting->Editor->InspectionsThe right to find HTML->Unknown HTML tag attribute, on the right Options->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:
Here Insert Picture Description

  • File->setting->Editor->File TypesFound inside HTML, the Registered Patternsadded which *.vuecan, as shown:
    Here Insert Picture Description
  • effect
    Here Insert Picture Description

Three, idea code hints shortcut keys

  • File->setting->keymap->Main Menu
    Here Insert Picture Description

Guess you like

Origin www.cnblogs.com/maggieq8324/p/11458752.html