How to run code in vscode: 1. Open a script file, then open the command panel, and click "Run active file in active terminal"; 2. Select a piece of code in the editor, and then open Command panel, run "Run selected text in active terminal".
The operating environment of this tutorial: Windows 7 system, visual studio code version 1.36, Dell G3 computer.
Recommended: "vscode tutorial"
How to run code in vscode:
I opened a script file and hope to execute the script file directly. You can open the command panel and click "Run active file in active terminal" to run the code in the currently opened terminal
We can also select a certain file in the editor snippet of code, then open the Command Palette and run "Run Selected Text In Active Terminal" (Run Selected Text In Active Terminal), and this code will be executed in the terminal.
For more programming-related knowledge, please visit: Programming Teaching! !
The above is the detailed content of How to run code in vscode. For more information, please follow other related articles on the PHP Chinese website!