Hello @Igor Pavlov,
Welcome to Microsoft Q&A forum.
If you mean previously in VS, VS can keep several Console windows open without closing any one of them, but now, in VS 2022, VS only keeps one Console window open, then you may need to refer to this thread: Visual Studio 2022 on Windows 11 reuses the same console window on successive runs, overwriting the previous output.
Currently no options can be selected to change to the situation like previous in VS 2019.
One workaround => creating and using shortcut keys to run the project by executing external tools.
If you mean for only one console window, it opens and automatically closes after clicking Start Without Debugging, then like what David mentioned above, by default, in VS 2022, the Console window should not be closed automatically. For different type of projects, the settings are different. You can reset VS General settings by following steps here: Reset all settings.
Besides, as VS 2022 uses Microsoft Visual Studio Debug Console, you can try to generate a profile(refer to this thread: Microsoft Visual Studio 2022 Debug Console instead of cmd.exe), but probably it doesn’t work.
Sincerely,
Tianyu
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
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.