Code Runner is a free VS Code plugin to run code of any programming language in a click. Here it supports programming languages like C, C++, Java, JavaScript, PHP, Python, and many others. This is a simple VS Code extension that you just install and forget and whenever you want to run some piece code then you just hot the run option that it adds in the editor.
There are dedicated extensions available for each programming language for VS Code but this one here this covers almost all of them under one umbrella. Here it works with the simple keyboard shortcut and right click menu. It automatically identifies the current programming language being worked on and it loads be run and build commands accordingly.
All the languages supported by Code Runner: C, C++, Java, JavaScript, PHP, Python, Perl, Perl 6, Ruby, Go, Lua, Groovy, PowerShell, BAT/CMD, BASH/SH, F# Script, F# (.NET Core), C# Script, C# (.NET Core), VBScript, TypeScript, CoffeeScript, Scala, Swift, Julia, Crystal, OCaml Script, R, AppleScript, Elixir, Visual Basic .NET, Clojure, Haxe, Objective-C, Rust, Racket, Scheme, AutoHotkey, AutoIt, Kotlin, Dart, Free Pascal, Haskell, Nim, D, Lisp, Kit, V, SCSS, Sass, CUDA, Less, Fortran.
Run any Programming Code in VS Code in a Click: Code Runner
Install this extension from VS Code Marketplace here. After that, it will add the run option in VS Code. You can either install it directly from the marketplace or download the extension file to install it manually.
After successful installation, it will add the Run Code option in the right click menu of the editor. Or, you can simply use Alt+ CTRL+N keyboard shortcut to the do the same. It will run the current file in the terminal automatically. Also, it will identify how to run the code by itself.
This is it. This is how this simple extension works to help you run code right inside VS Code. You only have to use the simple shortcut. It already supports a lot of languages so it doesn’t really matter how you program in VS Code.
Wrap up…
If you are a VS Code user then you will really like this simple and powerful VS Code extension. What I liked best about it is the number of languages that it supports. Also, I liked its ability to identify the language and use the run command accordingly.