Lately, I've been wondering if less screen real estate actually makes me a better programmer.
Being able to simultaneously have 6 files open across two large monitors with a lot of vertical real estate means that messy code doesn't hurt me as much. In fact, I'm pretty sure the only reason I do that is to facilitate dealing with messy code. I no longer have to build a stable mental model of it in my head, because it's reasonably convenient to just keep referring back to the original source code.
When I'm just on the laptop screen, though, and I can fit one file full width, or two if I've been good about keeping the line length below 90, I start having to keep things in my short term memory. Which means that, when it's not amenable to that, I'm relatively quick to get annoyed and refactor it for comprehensibility. I'd like to think that, with time, I'd eventually come to just write more comprehensible code in the first place.
A couple more data points here, obviously riddled with bias, come from my colleagues. Some have desktop computers with multiple 4K monitors, some have a laptop connected to a single external monitor, and some have that and also a habit of unplugging the computer and working on the front porch whenever the weather is nice. My impression is that the people in the first group tend to write the least comprehensible code.
Of course, the 4K monitor jocks also tend to work the fastest. But I think it's maybe a bit like when I used to work for building contractor. Nobody liked to be on the same crew as the person who worked the fastest.