https://github.com/iamnishant51/code-runner-vscode-extension
extension for vs code to run c and c++ programms inside vs code without any online compiler or switching tabs
https://github.com/iamnishant51/code-runner-vscode-extension
userful vscode vscode-extension
Last synced: about 2 months ago
JSON representation
extension for vs code to run c and c++ programms inside vs code without any online compiler or switching tabs
- Host: GitHub
- URL: https://github.com/iamnishant51/code-runner-vscode-extension
- Owner: IamNishant51
- License: mit
- Created: 2025-08-20T15:51:33.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-09-08T02:23:43.000Z (9 months ago)
- Last Synced: 2025-09-21T02:37:10.493Z (9 months ago)
- Topics: userful, vscode, vscode-extension
- Language: TypeScript
- Homepage:
- Size: 16.3 MB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README-NISHANT.md
- Changelog: CHANGELOG-NISHANT.md
- License: LICENSE
Awesome Lists containing this project
README
# ๐ Advanced Code Runner (VS Code Extension)
A powerful, feature-rich, multi-language code runner for VS Code with a beautiful dark-themed interface.
Run **10+ programming languages** directly inside VS Code with advanced features and smart input detection.
---
## โจ Features
### ๐ **Core Features**
- ๐ค **Beautiful dark-themed UI** with modern design
- ๐ **Multi-language support** - 10+ programming languages
- โก **One-click execution** with smart compilation detection
- ๐ **Auto file detection** from active editor
- ๐ป **Real-time output** with colored error messages
- โจ๏ธ **Interactive input support** with smart detection
- ๐ **Execution time tracking**
- ๐งน **Automatic cleanup** of temporary files
### ๐ง **Advanced Features**
- ๐ **Language templates** - Quick start with boilerplate code
- โจ **Code formatting** for supported languages
- ๐พ **Save to workspace** functionality
- โ๏ธ **Command line arguments** support
- ๐ฏ **Context menu integration**
- โจ๏ธ **Keyboard shortcuts** (Ctrl+F5 to run, Ctrl+Shift+R for panel)
- ๐ **Right-click to run** any supported file
### ๐ **Supported Languages**
| Language | Extensions | Compilation | Input Support | Templates |
|-------------|------------------|-------------|---------------|-----------|
| **C** | `.c` | โ
gcc | โ
| โ
|
| **C++** | `.cpp`, `.cxx`, `.cc` | โ
g++ | โ
| โ
|
| **Python** | `.py` | โ Interpreted | โ
| โ
|
| **Java** | `.java` | โ
javac | โ
| โ
|
| **JavaScript** | `.js` | โ Node.js | โ
| โ
|
| **TypeScript** | `.ts` | โ
tsc | โ
| โ
|
| **Go** | `.go` | โ go run | โ
| โ
|
| **Rust** | `.rs` | โ
rustc | โ
| โ
|
| **Ruby** | `.rb` | โ ruby | โ
| โ
|
| **PHP** | `.php` | โ php | โ
| โ
|
| **C#** | `.cs` | โ
csc | โ
| โ
|
---
## ๐ธ Preview
### ๐จ **Modern Interface**

### ๐ฅ **Multi-Language Support**

---
## ๐ Installation
### **Method 1: From Source (Recommended)**
1. Clone the repository:
```bash
git clone https://github.com/IamNishant51/CODE-RUNNER-vscode-extension.git
cd CODE-RUNNER-vscode-extension
```
2. Install dependencies:
```bash
npm install
```
3. Build the extension:
```bash
npm run compile
```
4. Package the extension:
```bash
npm run package
```
5. Install in VS Code:
- Open VS Code
- Press `Ctrl+Shift+P`
- Run "Extensions: Install from VSIX..."
- Select the generated `.vsix` file
### **Method 2: Development Mode**
1. Clone and open in VS Code
2. Press `F5` to run in development mode
3. Test in the new Extension Development Host window
---
## ๐ฏ Usage
### **Quick Start**
1. Open any supported code file (`.c`, `.cpp`, `.py`, `.java`, etc.)
2. Press `Ctrl+F5` or right-click โ "Run Current File"
3. Or open Command Palette (`Ctrl+Shift+P`) โ "Code Runner: Open Panel"
### **Commands**
- `Code Runner: Open Panel` - Open the main runner interface
- `Code Runner: Run Current File` - Quick run active file
- `Code Runner: Create Template` - Generate language templates
- `Code Runner: Open Settings` - Access configuration
### **Keyboard Shortcuts**
- `Ctrl+F5` (`Cmd+F5` on Mac) - Run current file
- `Ctrl+Shift+R` (`Cmd+Shift+R` on Mac) - Open runner panel
### **Templates**
Create boilerplate code for any supported language:
1. Command Palette โ "Code Runner: Create Template"
2. Select language
3. Enter filename
4. Template is created and opened automatically
---
## โ๏ธ Configuration
### **Settings**
Access via File โ Preferences โ Settings โ Search "Code Runner"
```json
{
"codeRunner.executorMap": {
"c": "gcc $fileName -o $fileNameWithoutExt && ./$fileNameWithoutExt",
"cpp": "g++ $fileName -o $fileNameWithoutExt && ./$fileNameWithoutExt",
"python": "python $fileName",
"java": "javac $fileName && java $fileNameWithoutExt",
"javascript": "node $fileName",
"typescript": "tsc $fileName && node $fileNameWithoutExt.js",
"go": "go run $fileName",
"rust": "rustc $fileName -o $fileNameWithoutExt && ./$fileNameWithoutExt",
"ruby": "ruby $fileName",
"php": "php $fileName",
"csharp": "csc $fileName && ./$fileNameWithoutExt.exe"
},
"codeRunner.runInTerminal": false,
"codeRunner.clearPreviousOutput": true,
"codeRunner.saveFileBeforeRun": true,
"codeRunner.showExecutionMessage": true
}
```
### **Prerequisites**
Make sure you have the required compilers/interpreters installed:
- **C/C++**: GCC/G++ (`sudo apt install gcc g++` on Ubuntu)
- **Python**: Python 3.x (`python.org`)
- **Java**: JDK 8+ (`sudo apt install openjdk-11-jdk`)
- **Node.js**: For JavaScript/TypeScript (`nodejs.org`)
- **Go**: Go compiler (`golang.org`)
- **Rust**: Rust toolchain (`rustup.rs`)
- **Ruby**: Ruby interpreter (`ruby-lang.org`)
- **PHP**: PHP interpreter (`php.net`)
- **C#**: .NET SDK (`dotnet.microsoft.com`)
---
## ๐ What's New in v1.0.0
### **Major Enhancements**
- โ
**10+ language support** (previously only C/C++/Python)
- โ
**Language templates** with boilerplate code
- โ
**Smart input detection** for interactive programs
- โ
**Execution time tracking**
- โ
**Command line arguments** support
- โ
**Code formatting** capabilities
- โ
**Context menu integration**
- โ
**Keyboard shortcuts**
- โ
**Modern UI redesign** with status indicators
- โ
**Better error handling** with colored output
- โ
**Configuration options** for customization
### **Technical Improvements**
- ๐ง Modular language configuration system
- ๐ง Enhanced process management
- ๐ง Better memory cleanup
- ๐ง Cross-platform compatibility improvements
- ๐ง TypeScript strict mode compliance
---
## ๐ค Contributing
We welcome contributions! Here's how you can help:
1. **Fork** the repository
2. **Create** a feature branch (`git checkout -b feature/amazing-feature`)
3. **Commit** your changes (`git commit -m 'Add amazing feature'`)
4. **Push** to the branch (`git push origin feature/amazing-feature`)
5. **Open** a Pull Request
### **Development Setup**
```bash
git clone https://github.com/IamNishant51/CODE-RUNNER-vscode-extension.git
cd CODE-RUNNER-vscode-extension
npm install
npm run watch # For development with auto-reload
```
---
## ๐ Roadmap
### **Upcoming Features**
- [ ] **Code editor integration** - Edit code directly in the panel
- [ ] **Debug mode support** - Integrate with VS Code debugger
- [ ] **Multiple file projects** - Support for multi-file compilation
- [ ] **Custom build configurations** - Project-specific settings
- [ ] **Performance profiling** - Memory and CPU usage tracking
- [ ] **Output export** - Save results to file
- [ ] **Collaborative features** - Share code snippets
- [ ] **Cloud compilation** - Remote execution support
### **Language Additions**
- [ ] **Kotlin** support
- [ ] **Swift** support
- [ ] **Dart** support
- [ ] **Scala** support
- [ ] **Perl** support
---
## ๐ Known Issues
- TypeScript compilation may require global `tsc` installation
- C# support requires .NET SDK installation
- Some languages may need PATH configuration
- Input detection might need refinement for complex prompts
Report issues at: [GitHub Issues](https://github.com/IamNishant51/CODE-RUNNER-vscode-extension/issues)
---
## ๐ License
This project is licensed under the **MIT License** - see the [LICENSE](LICENSE) file for details.
---
## ๐จโ๐ป Author
**Nishant Unavane** - [@IamNishant51](https://github.com/IamNishant51)
---
## ๐ Support
If you find this extension helpful, please:
- โญ **Star** the repository
- ๐ **Report** any issues
- ๐ก **Suggest** new features
- ๐ข **Share** with others
---
## ๐ Contact
- **GitHub**: [@IamNishant51](https://github.com/IamNishant51)
- **Repository**: [CODE-RUNNER-vscode-extension](https://github.com/IamNishant51/CODE-RUNNER-vscode-extension)
- **Issues**: [Report a Bug](https://github.com/IamNishant51/CODE-RUNNER-vscode-extension/issues)
---
**Made with โค๏ธ for the coding community**