Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Vscode | 153,351 | 237 | 144 | a day ago | 638 | July 27, 2023 | 8,702 | mit | TypeScript | |
Visual Studio Code | ||||||||||
Vscode Restclient | 4,629 | a month ago | 452 | mit | TypeScript | |||||
REST Client Extension for Visual Studio Code | ||||||||||
Vscode Code Runner | 2,055 | 20 days ago | 605 | mit | TypeScript | |||||
Code Runner for Visual Studio Code | ||||||||||
Pythonvscode | 2,044 | 6 months ago | 59 | mit | TypeScript | |||||
This extension is now maintained in the Microsoft fork. | ||||||||||
Vscode Peacock | 964 | 3 months ago | 40 | mit | TypeScript | |||||
Subtly change the color of your Visual Studio Code workspace. Ideal when you have multiple VS Code instances, use VS Live Share, or use VS Code's Remote features, and you want to quickly identify your editor. | ||||||||||
Vscodenotebook | 561 | 3 years ago | 6 | mit | Python | |||||
📝 Use VS Code as a reliable note-taking/journal application | ||||||||||
Vscode Portable | 491 | 7 months ago | 14 | gpl-2.0 | HTML | |||||
Portable version of the Visual Studio Code editor. | ||||||||||
Vscode | 380 | 3 months ago | 6 | mit | JavaScript | |||||
Soho vibes for Visual Studio Code | ||||||||||
Themecreator | 369 | 6 months ago | 6 | gpl-3.0 | Clojure | |||||
https://mswift42.github.io/themecreator/ create themes for intellij, textmate, textadept, atom, emacs, vim and gnome terminal. | ||||||||||
Vscode Theme Onedark | 265 | 2 months ago | 50 | mit | ||||||
VSCode Theme based on Atom's One Dark theme |
Run code snippet or code file for multiple languages: 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, Ring, Standard ML, Zig, Mojo, and custom command
《Visual Studio Code 权威指南》:带你深入浅出 VS Code!
VS Code 的热门文章、使用技巧、插件推荐、插件开发攻略等,请关注“玩转VS Code”公众号!
If you like this extension, you could become a backer or sponsor via Patreon, donate via PayPal, or scan below QR code to donate via Alipay. Any amount is welcome. It will encourage me to make this extension better and better!
Ctrl+Alt+N
F1
and then select/type Run Code
,Run Code
in editor context menuRun Code
button in editor title menuRun Code
button in context menu of file explorerCtrl+Alt+M
F1
and then select/type Stop Code Run
Stop Code Run
button in editor title menuStop Code Run
in context menuCtrl+Alt+J
, or press F1
and then select/type Run By Language
, then type or select the language to run: e.g php, javascript, bat, shellscript...
Ctrl+Alt+K
, or press F1
and then select/type Run Custom Command
Make sure the executor PATH of each language is set in the environment variable.
You could also add entry into code-runner.executorMap
to set the executor PATH.
e.g. To set the executor PATH for ruby, php and html:
{
"code-runner.executorMap": {
"javascript": "node",
"php": "C:\\php\\php.exe",
"python": "python",
"perl": "perl",
"ruby": "C:\\Ruby23-x64\\bin\\ruby.exe",
"go": "go run",
"html": "\"C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe\"",
"java": "cd $dir && javac $fileName && java $fileNameWithoutExt",
"c": "cd $dir && gcc $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt"
}
}
Supported customized parameters
Python: Select Interpreter
command)Please take care of the back slash and the space in file path of the executor
\\
\"
to surround your file pathYou could set the executor per filename glob:
{
"code-runner.executorMapByGlob": {
"pom.xml": "cd $dir && mvn clean package",
"*.test.js": "tap",
"*.js": "node"
}
}
Besides, you could set the default language to run:
{
"code-runner.defaultLanguage": "javascript"
}
For the default language: It should be set with language id defined in VS Code. The languages you could set are java, c, cpp, javascript, php, python, perl, ruby, go, lua, groovy, powershell, bat, shellscript, fsharp, csharp, vbscript, typescript, coffeescript, swift, r, clojure, haxe, objective-c, rust, racket, ahk, autoit, kotlin, dart, pascal, haskell, nim, d, lisp
Also, you could set the executor per file extension:
{
"code-runner.executorMapByFileExtension": {
".vbs": "cscript //Nologo"
}
}
To set the custom command to run:
{
"code-runner.customCommand": "echo Hello"
}
To set the the working directory:
{
"code-runner.cwd": "path/to/working/directory"
}
To set whether to clear previous output before each run (default is false):
{
"code-runner.clearPreviousOutput": false
}
To set whether to save all files before running (default is false):
{
"code-runner.saveAllFilesBeforeRun": false
}
To set whether to save the current file before running (default is false):
{
"code-runner.saveFileBeforeRun": false
}
To set whether to show extra execution message like [Running] ... and [Done] ... (default is true):
{
"code-runner.showExecutionMessage": true
}
[REPL support] To set whether to run code in Integrated Terminal (only support to run whole file in Integrated Terminal, neither untitled file nor code snippet) (default is false):
{
"code-runner.runInTerminal": false
}
To set whether to preserve focus on code editor after code run is triggered (default is true, the code editor will keep focus; when it is false, Terminal or Output Channel will take focus):
{
"code-runner.preserveFocus": true
}
code-runner.ignoreSelection
: Whether to ignore selection to always run entire file. (Default is false)
code-runner.showRunIconInEditorTitleMenu
: Whether to show 'Run Code' icon in editor title menu. (Default is true)
code-runner.showRunCommandInEditorContextMenu
: Whether to show 'Run Code' command in editor context menu. (Default is true)
code-runner.showRunCommandInExplorerContextMenu
: Whether to show 'Run Code' command in explorer context menu. (Default is true)
code-runner.showStopIconInEditorTitleMenu
: Whether to show 'Stop Code Run' icon in editor title menu when code is running. (Default is true)
code-runner.terminalRoot
: For Windows system, replaces the Windows style drive letter in the command with a Unix style root when using a custom shell as the terminal, like Bash or Cgywin. Example: Setting this to /mnt/
will replace C:\path
with /mnt/c/path
(Default is "")
code-runner.temporaryFileName
: Temporary file name used in running selected code snippet. When it is set as empty, the file name will be random. (Default is "tempCodeRunnerFile")
code-runner.respectShebang
: Whether to respect Shebang to run code. (Default is true)
code-runner.cwd
settingcode-runner.cwd
is not set and code-runner.fileDirectoryAsCwd
is true
, use the directory of the file to be executedcode-runner.cwd
is not set and code-runner.fileDirectoryAsCwd
is false
, use the path of root folder that is open in VS CodeBy default, telemetry data collection is turned on to understand user behavior to improve this extension. To disable it, update the settings.json as below:
{
"code-runner.enableAppInsights": false
}
See Change Log here
Submit the issues if you find any bug or have any suggestion.
Fork the repo and submit pull requests.