Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Wednesday, February 24, 2016 7:51 PM
How do I run a program in Visual Studio Code?
All replies (3)
Wednesday, February 24, 2016 8:43 PM âś…Answered
Basically, you cannot. VS Code is just an editor, not an integrated development environment.
Please read through this thread plus links:
http://stackoverflow.com/questions/32688441/how-to-run-a-program-c-on-visual-studio-code
Tuesday, November 1, 2016 1:05 PM
You could try Code Runner extension for Visual Studio Code. It is easier to run code, no any configuration needed. It now supports several languagse: JS, PHP, Python, Perl, Ruby, Go, Lua, Groovy, PowerShell, BAT/CMD, BASH/SH, F#, C#, VBScript, TypeScript, CoffeeScript, Scala, Swift, Julia, Crystal.
After the extension is installed, run the code as below:
Open code file or select code snippet in Text Editor, then use shortcut Ctrl+Alt+N
, or press F1
and then select/type Run Code
, or right click the Text Editor and then click Run Code
in context menu, the code will run and the output will be shown in the Output Window.
Tuesday, November 1, 2016 1:18 PM
VS Code has a set of extensions to run a program. And its built-in Task Runner is also able to run a program. The answer of @pvdg42 should not be marked as an answer.