First click the square button on the left, as shown below
Recommended learning:vscode tutorial
Then enter Code Runner and click to install
Then enter Language support for java and click to install
Then open a java file, as shown in the figure below
Right-click and select Run Code, as shown in the figure below
Finally, the running result is obtained at the bottom, as shown in the figure below
In summary, it is better to run java files in VSCode It’s simple, you can try it, but it’s not recommended for large projects
The above is the detailed content of How to run a program in vscode. For more information, please follow other related articles on the PHP Chinese website!