Skip to content

Quick C++ is a VS Code extension that allows users to run C++ code snippets directly within the editor. It provides inline output for quick debugging and execution insights, making C++ development more efficient.

License

Notifications You must be signed in to change notification settings

Codegyan-LLC/QuickCPP

Repository files navigation

Quick C++ - C Inline Execution for VS Code

Quick C++ is a VS Code extension that allows users to run C++ code snippets directly within the editor. It provides inline output for quick debugging and execution insights, making C++ development more efficient.

Quick C++ Example

Getting Started

Installation

  1. VS Code Marketplace :

    • Open Visual Studio Code.
    • Navigate to the Extensions view (Ctrl+Shift+X or Cmd+Shift+X on macOS).
    • Search for Quick C++.
    • Click "Install" to add the extension to your VS Code.
  2. Install from VSIX :

    • Download the latest .vsix package from the Releases page.
    • Open Visual Studio Code.
    • Go to the Extensions view by clicking on the Extensions icon in the Activity Bar or pressing Ctrl+Shift+X.
    • Click on the ellipsis (...) in the top-right corner of the Extensions view and select "Install from VSIX...".
    • Navigate to the downloaded .vsix file and select it to install.

Features

  • Inline Code Execution: Run C++ code directly in the editor and display results as inline comments.
  • Real-Time Updates: Automatically executes code on text changes or cursor movements.
  • Error Feedback: Catch errors like NameError and display clear, formatted messages inline.
  • Temporary File Execution: Ensures safe execution using temporary files without modifying your project files.
  • Output Formatting: Displays clean and non-intrusive inline output for easy readability.
  • Enhanced Debugging: Provides feedback for incomplete or invalid code to help developers debug faster.

Usage

Auto Execution

Just write a C++ echo, print_r, or var_dump statement, and the output will appear inline.

#include <iostream>
using namespace std;

int main() {
    cout << "Hello, QuickCPP!" << endl;  // Output: Hello, QuickCPP!
    return 0;
}

Error Highlighting

Errors are shown inline, with the file and line number.

#include <iostream>
using namespace std;

int main() {
    cout << "Hello, QuickCPP!" << endl // error: expected ';' before 'return'
    return 0;
}

Known Issues

  • Large scripts or complex logic may cause delays in execution.
  • Inline execution is limited to the lines above the current cursor.

Feel free to report bugs or suggest features by opening an issue on GitHub.

Contributing

Contributions are welcome! If you have suggestions for improvements or new features, feel free to open an issue or submit a pull request on the Github.

License

This extension is licensed under the MIT license.

Contact

For questions or feedback, please contact [email protected].


Thank you for using Quick C++! We hope it enhances your coding experience.

About

Quick C++ is a VS Code extension that allows users to run C++ code snippets directly within the editor. It provides inline output for quick debugging and execution insights, making C++ development more efficient.

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published