How to use vscode to develop uni-app

In fact, in general, it is still impossible to completely break away from HBuilder X, but because I have been using vs code for development and am accustomed to using HBuilder

  1. Use  HBuilder X Run Project to run it to your desired platform 
  2. VsCode Open the project to be developed using 
  3. Install the plugin in  VSCode :
    1. uni-helper
    2. uni-app-snippets
    3. uni-app-schemas
    4. uni-ui-snippets
  4. Finally, just develop the code in vscode and it will run automatically after saving the file.

Supplement: You can use cli to create a project directly in vscode. However, after developing for a period of time recently, I found that it is more convenient to use hbuilder to develop uniapp. Everyone has their own opinions on this. You can do it according to your own preferences.

Guess you like

Origin blog.csdn.net/wuguidian1114/article/details/122384930