How to set output console width in Visual Studio

前端 未结 3 1581
无人共我
无人共我 2021-02-13 10:12

Whenever I build and run my C++ code from Visual Studio 2013, the console window width is un-adjustable and because of this, causes my output to be pushed onto the next line soo

3条回答
  •  我寻月下人不归
    2021-02-13 10:53

    One solution that I use frequently with console applications I debug from Visual Studio that does not require code changes is to do the following:

    1. Right Click on title bar of your running console application
    2. Select Properties
    3. Select Layout
    4. Then set the window size.

    After you close the dialog box, Windows should save the settings or prompt you to save depending on your version of Windows. I believe Windows 8 or newer does not prompt, while Windows 7 or lower prompts.

提交回复
热议问题