codeplayer
Play code files instantly with a single click. Supports 50+ languages.
Turn your code into lightning-fast execution directly from Visual Studio Code. Perfect for quick testing, learning, prototyping, and daily coding workflows.
Resources
GitHub: https://github.com/projectsbyayush/codeplayer
Report Issues: https://github.com/projectsbyayush/codeplayer/issues
License: MIT
A lightning-fast VS Code extension that adds a play button to your editor. Open any code file, click the green play icon, and run it instantly in the integrated terminal. No configuration needed.
Features
- Instant Execution — Run code in milliseconds with zero lag
- Play Button — Green play icon appears in the editor title bar for supported files
- 50+ Languages — Python, JavaScript, TypeScript, Java, C, C++, Go, Rust, Ruby, PHP, and more
- Auto-Save — Files are saved automatically before execution
- Terminal Reuse — Reuses the existing terminal, no duplicate tabs
- Cross-Platform — Works on Windows, macOS, and Linux
- Smart Detection — Button only appears for supported file types
- No Configuration — Works out of the box, no setup required
Quick Start
- Install the extension from the VS Code Marketplace or VSIX
- Open any supported code file in VS Code
- Click the green play button in the top-right of the editor
- The file runs instantly in the integrated terminal
How It Works
- Click the green play button or press
Ctrl+Shift+P and type "Play File"
- The extension detects your file's language automatically
- The file is saved (if dirty) and the optimal run command is sent to the terminal
- Output appears in the integrated terminal
Commands
| Command |
Description |
Shortcut |
| Play File |
Play the active file in the terminal |
Click play button |
| Play File (Command Palette) |
Play via Command Palette |
Ctrl+Shift+P → "Play File" |
Supported Languages
| Category |
Languages |
| Web |
JavaScript, TypeScript, JSX, TSX, HTML, CSS, SCSS, Less, Vue, Svelte |
| Systems |
C, C++, Rust, Go, Java, Kotlin, Swift, C# |
| Scripting |
Python, Ruby, PHP, Lua, Perl, Dart, Elixir, Erlang, Groovy |
| Functional |
Haskell, Scala, Julia, R, Crystal |
| Shell |
Bash, PowerShell, Batch |
| Build |
Makefile, CMake, Dockerfile |
| Compiled |
Fortran, Pascal, Assembly/NASM, V, Nim, Zig, Odin |
| Data |
SQL, JSON, YAML |
| Other |
MATLAB, LaTeX |
Language Commands
| Language |
Command |
| Python |
python -u |
| JavaScript |
node |
| TypeScript |
npx ts-node |
| Java |
javac + java |
| C |
gcc + run |
| C++ |
g++ + run |
| C# |
dotnet run |
| Go |
go run |
| Rust |
rustc + run |
| Ruby |
ruby |
| PHP |
php |
| Swift |
swift |
| Kotlin |
kotlin |
| R |
Rscript |
| Scala |
scala |
| Haskell |
runhaskell |
| Perl |
perl |
| Lua |
lua |
| Dart |
dart run |
| Elixir |
elixir |
| Erlang |
escript |
| Julia |
julia |
| Shell/Bash |
bash |
| PowerShell |
powershell -File |
| Fortran |
gfortran + run |
| Pascal |
fpc + run |
| Assembly/NASM |
nasm + ld + run |
| V |
v run |
| Nim |
nim r |
| Zig |
zig run |
| Odin |
odin run |
| Crystal |
crystal run |
| Groovy |
groovy |
| HTML |
Opens in browser |
| CSS |
Opens in browser |
| SCSS |
sass |
| Less |
lessc |
| Dockerfile |
docker build |
| Makefile |
make |
| CMake |
cmake + build |
| JSON |
Validates with Node |
| YAML |
Validates with js-yaml |
Keyboard Shortcuts
| Key |
Action |
| Click play button |
Play the active file |
Ctrl+Shift+P → "Play File" |
Play via Command Palette |
Installation
From VS Code Marketplace
- Open VS Code
- Go to Extensions (
Ctrl+Shift+X)
- Search for "CodePlayer"
- Click Install
From VSIX
code --install-extension AyushPatil.codeplayer-1.0.0.vsix
From Source
git clone https://github.com/projectsbyayush/codeplayer.git
cd codeplayer
npm install
npm run compile
Requirements
- VS Code 1.85.0 or higher
- The relevant runtime for your language must be installed and available on your PATH (e.g.,
python, node, gcc, go, rustc)
License
MIT License - Copyright (c) 2026 Ayush Patil.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Support
If you find this extension helpful, please rate it on the VS Code Marketplace.
| |