Home>Article>Web Front-end> How to run vue project on vscode
How to run the vue project on vscode: 1. Use vue-cli scaffolding to build an empty vue project; 2. Open VSCode to download the vetur plug-in; 3. Download and install the eslint plug-in; 4. Open the vue project and use git Just iterate on the project.
The operating environment of this article: Windows7 system, vue2.5.17 version, DELL G3 computer
How to run the vue project on vscode?
##Preface
以前都是用webstorm编写前端代码,最近开始尝试使用VSCode来写,目前还是有些懵逼的,一步步将使用流程写下来便于之后自己再次配置。
veturplug-in in the search box at the top to download and install it.
After downloading and installing, you will see it in the extension list. For example, mine is version 0.29.1
Then you need to open the setting.json file for configuration:
"emmet.syntaxProfiles": { "vue-html":"html", "vue":"html" },3: Download and install the eslint plug-in, which is an intelligent error detection plug-in Click the circled icon on the left to open the extension plug-in, and search for the
eslintplug-in in the search box at the top Just download and install.
After downloading and installing, you will see it in the extension list. For example, mine is version 2.1.13.
Then you need to open the setting.json file for configuration:
"eslint.validate": [ "javascript", "gavesciptreact", "html", "vue" ], "eslint.options": { "plugins":["html"] },4: Open the empty vue project we built in the first step Enter in the terminal:
npm install, first download the corresponding dependencies.
Last input:
npm start, run the project:
Open the corresponding address in the browser and see the picture below, which means the operation is successful:
vue tutorial"
The above is the detailed content of How to run vue project on vscode. For more information, please follow other related articles on the PHP Chinese website!