VSCode write Vue

Plug: Vetur

Installation: Vue 2 Snippets

Installation: JS-CSS-HTML Formatter

Installation: HTML Snippets

Modify setting.json file: File -> Preferences -> Settings to edit the file into our setting.json

 

    "files.associations": {

        "*.ejs":"html",

        "*.vue":"html"

        },

        "emmet.triggerExpansionOnTab": true,

        "emmet.includeLanguages":{

        "vue-html":"html",

        "vue":"html"

    }

After the plugin is installed, we open the project: Vue.Demo

 Open the Terminal run the project: npm run serve

Enter the browser: HTTP: // localhost: 8080 /

Published 128 original articles · won praise 18 · views 50000 +

Guess you like

Origin blog.csdn.net/xiaoxionglove/article/details/101868813