First install the debugger, commonly used are Debugger for Firefox
and Debugger for Chrome,
Search and install directly
Open the project. At this time, the browser is not configured
Select to add configuration and follow the prompts to add it. After the addition is completed, a browser configuration file launch.json will be automatically generated
In the configuration file, change the port to 4200, the default launch port of ng serve to 4200. After starting the service through ng serve, you can directly click to run the project.
Finish!
Recommended related articles and tutorials: vscode tutorial
The above is the detailed content of How to start vscode project. For more information, please follow other related articles on the PHP Chinese website!