VS Code like centered split editors

Answered

Is it possible to have split editors where there is space outside the editors but not between them. Similar to how VSCode does it.

I have enabled `editor.distraction.free.mode` which gets me some of the way. But there is a huge gap between the editors.

From VS Code: 

Same view in IntelliJ: 

 

0
5 comments
Can you check if changing to a lower value "Left margin in distraction free mode" in Settings | Advanced Settings help? It should be -1 by default. 
Also check if see any difference when the gutter icons are disabled? See: https://www.jetbrains.com/help/idea/settings-gutter-icons.html
0

Unfortunately this just removes all spacing. Ideally I would like to only remove spacing between the code, but keep spacing to the left of the left editor and to the right of the right editor

0

At the moment, the IDE doesn't support this specific option. While we strive to keep our core features focused on the most common workflows, some advanced or niche functionalities are often better suited for plugins. However, we’re always open to learning more about how our users work. Could you please share more details about your scenario and why having two split editors with additional space on the sides would be valuable for your workflow? 

This will help us better understand your needs and evaluate whether this could be a future improvement or a plugin opportunity.

0

Could you please share more details about your scenario and why having two split editors with additional space on the sides would be valuable for your workflow? 

Of course. 

I have an ultrawide monitor (21:9) that I like to use because of the potential screen real estate. When I'm working on code I prefer to have it centered, because otherwise I'm constantly keeping my head slightly tilted left, which is why I have the “editor.distraction.free.mode” enabled. I also prefer to have everything else closed when I'm not actively using it, to keep my focus on the code.

But when I'm working on features I often like to have both the code and the test for that code open at the same time. This allows me to write and fix tests a lot easier. But the extra spacing in the center means that it's harder for me to jump between sides with just my eyes, and thus it slows me down when coding. Removing the spacing in the center unfortunately removes all spacing which then just adds to the problem of having to physically move my head, slowing me down even further.

 

0

At the moment, this is not possible. I filed a new feature request IJPL-194804 Center split tabs in distraction-free mode to our tracker. Please upvote to follow the updates.

0

Please sign in to leave a comment.