Skip to content

Feedback: External Console Closes Automatically in VS Code C/C++ #13780

@D4G4M45T3R

Description

@D4G4M45T3R

Feature Request

Dear VS Code C/C++ Extension Team,

I'm writing to provide feedback regarding the default behavior of the external console when running C++ programs in VS Code.

My main concern is that when I use Ctrl+F5 (Run Without Debugging), the external console window automatically closes as soon as the program finishes executing. This makes it difficult to see the output of simple programs, especially when I'm just trying to quickly check results without entering debug mode.

Many other IDEs, like Dev-C++, keep the console window open by default until the user presses a key. This "pause" functionality is very helpful for a quick overview of the program's output.

While I understand there are workarounds (like adding system("pause"); to my code or configuring externalConsole: false to use the integrated terminal), it feels counter-intuitive for such a common use case. It would greatly improve the user experience if there was a simple, built-in option in the extension or a more straightforward default behavior that keeps the external console open after execution.

Thank you for considering this feedback.

Sincerely,

A VS Code User

Metadata

Metadata

Assignees

No one assigned

    Labels

    debuggerenhancementImprovement to an existing featurehelp wantedCan be fixed in the public (open source) repo.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions