How can I celar am Immediate Window in MS VS C/C++ ?

JerryM 1,131 Reputation points
2021-07-05T11:19:41.89+00:00

Hi,

1/ how can I clear the "Immediate window" in MS VS C++ by hands e.g. Ctrl + I + C etc?

2/ how can I clear the "Immediate window" in MS VS C++ programmatically using C/C++ command e.g. Degug.Clean("Immediate Window") ?

Jerry

Developer technologies | C++
Developer technologies | Visual Studio | Other
{count} votes

Accepted answer
  1. PengGe-MSFT 3,381 Reputation points
    2021-07-06T06:18:23.24+00:00

    Hi, @JerryM

    Welcome to Microsoft Q&A!

    You can use >cls to clear the Immediate Window, which is the command alias of Edit.ClearAll. You can refer to this document.
    If your keyboard has a Menu key, you can also use Menu key> l to clear the Immediate Window. If not, you can also use Shift+F10.
    If you want to write some code to clear the Immediate Window, you can refer to this document.

    Sincerely,
    Peng
    *
    If the answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread

    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Guido Franzke 2,191 Reputation points
    2021-07-06T05:53:46.21+00:00

    Hello,
    what is an "immediate window"? Do you mean the console window of a console app?
    If yes, read this: how-can-i-clear-console
    Regards, Guido

    0 comments No comments

  2. rupesh shukla 16 Reputation points
    2021-07-06T20:36:58.09+00:00

    Can you elaborate it little bit more , what is your actual requirement ? Are you talking about system("cls") etc.

    Thanks

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.