SunsetQuest
SunsetQuest

Reputation: 8867

Is there a way to increase the Visual Studio console history (buffer) length?

Can the Visual Studio console history (buffer) length be increased beyond the build in 32766 lines?

I tried this, but it did not help:

Console.SetBufferSize(1000, short.MaxValue-1); 
Console.BufferHeight = short.MaxValue-1;

I wanted to avoid using a log file and possibly any libraries.

Background: In the last year, I moved to Visual Studio 2022 and Windows 11 (with the newer console). Now it just gives me 32766 lines. That sounds like a lot, but having a million lines is much better when I have lots of output with my simple c# console apps. I used to be able to go to the console properties and update the buffer history to 99999 and the number of buffers to some high also, but now I cannot find that:

enter image description here

I tried setting the history to a large value in the new Windows console, but it did not help.

enter image description here

Update: it looks like this might be a known issue:

Upvotes: 1

Views: 899

Answers (0)

Related Questions