Preventing console window from closing on Visual Studio C/C++ Console application

前端 未结 21 1654
灰色年华
灰色年华 2020-11-21 23:42

This is a probably an embarasing question as no doubt the answer is blindingly obvious.

I\'ve used Visual Studio for years, but this is the first time I\'ve done any

21条回答
  •  北海茫月
    2020-11-22 00:03

    Starting from Visual Studio 2017 (15.9.4) there is an option:

    Tools->Options->Debugging->Automatically close the console
    

    The corresponding fragment from the Visual Studio documentation:

    Automatically close the console when debugging stops:

    Tells Visual Studio to close the console at the end of a debugging session.

提交回复
热议问题