Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>C-C++-runnerNew to Visual Studio Code? Get it now.
C-C++-runner

C-C++-runner

Nishant Unavane

|
227 installs
| (0) | Free
c-c++ compiler inside vs code
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

VS Code Code Runner Extension 🚀

A powerful VS Code extension that allows you to run C, C++, and Python code directly within VS Code without switching between applications or using online compilers.

License: MIT TypeScript VS Code

Features ✨

  • Multi-language Support: Run C, C++, and Python code seamlessly
  • Real-time Output: View program output directly in VS Code
  • Interactive Input: Support for program input during execution
  • Clean Interface: Modern and intuitive user interface
  • File Management: Automatic file handling and cleanup
  • Cross-platform: Works on Windows, Linux, and macOS

Prerequisites 🛠️

Ensure you have the following installed:

  • Visual Studio Code
  • For C/C++: GCC/G++ compiler
  • For Python: Python interpreter
  • Required extensions dependencies will be automatically installed

Installation 📥

  1. Open VS Code
  2. Go to Extensions (Ctrl+Shift+X)
  3. Search for "Code Runner"
  4. Click Install

Usage 💻

  1. Open your code file in VS Code
  2. Click the "Code Runner" icon in the activity bar
  3. Enter your file name (e.g., main.cpp, main.c, or main.py)
  4. Select your programming language
  5. Click "Run" to execute your code
  6. View output in the integrated terminal

Supported File Types

  • .cpp (C++ files)
  • .c (C files)
  • .py (Python files)

Features in Detail 🔍

Interactive Console

  • Real-time input/output handling
  • Support for interactive programs
  • Clear output formatting

Error Handling

  • Compilation error detection
  • Runtime error reporting
  • Clear error messages

File Management

  • Automatic temporary file creation
  • Clean workspace management
  • Automatic cleanup after execution

Contributing 🤝

Contributions are welcome! Feel free to:

  1. Fork the repository
  2. Create your feature branch
  3. Commit your changes
  4. Push to the branch
  5. Open a Pull Request

License 📄

This project is licensed under the MIT License - see the LICENSE file for details

Author ✍️

Nishant Unavane

  • GitHub: @IamNishant51
  • Email: anonymouslucifer400@gmail.com

Acknowledgments 🙏

  • VS Code Extension API
  • TypeScript team
  • All contributors and users
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft