
How to write nodejs with vscode?
First open the VSCode software, click to open the folder, as shown below
Recommended learning: vscode tutorial
##Then create a new folder to save the node.js file, as shown in the figure below

Then create a new js file under the folder, as shown in the figure below

Then enter the Nodejs code in JS, as shown in the picture below

Next switch to debugging and click on the top Settings button, as shown in the figure below

Then select the node.js option in the drop-down list that appears, as shown in the figure below

Then modify the default startup file of nodejs, as shown in the figure below

Finally click the startup button at the top, as shown in the figure below

The above is the detailed content of How to write nodejs with vscode. For more information, please follow other related articles on the PHP Chinese website!