question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow to open two distinct editors side by side in one group

See original GitHub issue

VsCode has the ability to horizonatally split an editor window. When you execute code --diff file1 file2 both files are opened side by side in a single editor window with a single header tab. A similar view is presented when you edit the VsCode settings.

This is splitting. It would be nice to be able to do this for my own files to have multiple views of the same file. What would make it actually usable would be the following three enhancements.

  1. The option to split either horizontally or vertically.
  2. The ability to move focus from one split pane to another.
  3. The ability to unsplit (revert the editor back to a single pane).

What we currently have is a keyboard shortcut “workbench.action.splitEditor” which doesn’t actually split an editor at all, instead it just opens the same file in another editor in a different editor group. This is not editor splitting which by definition should occur in the same editor tab.

Calling opening a file in another editor group ‘splitting’ when there is already nascent functionality to support proper splitting is a pointless ambiguity that serves only to reduce the possibility that the editor will ever support proper splitting any time in the near future.

Proposal:

  1. Rename “workbench.action.splitEditor” to “workbench.action.openInNewEditorGroup”
  2. Make the VsCode diff view usable by adding a keyboard shortcut to permit cycling focus from one editor pane to the other.
  3. Add support to split open editor vertically or horizontally by the addition of the additional keyboard shortcuts “editor.action.splitHorizontal”, “editor.action.splitVertical” and “editor.action.unsplit”.

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:218
  • Comments:52 (21 by maintainers)

github_iconTop GitHub Comments

59reactions
robertocartacommented, Mar 4, 2018

+1 This is the only reason why I’m unable to switch from vim to vscode. The idea is that you want to be able to split a tab, not the entire editor. For example, I want one tab vertically split with index.html and controllers.js, and another tab split between directives.js and somethingelse.whateva.

22reactions
mmmfarrellcommented, Feb 24, 2020

Vim-style splitting would be awesome! This is the cause of one of the few remaining efficiency decreases I get by switching to VSCode from Vim

Read more comments on GitHub >

github_iconTop Results From Across the Web

VS Code tips — Split editor in group - YouTube
Split an editor within an existing editor tab with VS Code's "Split editor in group " command. Useful for viewing multiple locations in...
Read more >
How do I open the same file side by side in a single Visual ...
In the top right of your screen there should be a split editor button that looks like this: ... Click the Split Editor...
Read more >
Text editor with split screen option - Unix Stack Exchange
To split the view, go to View → Split View. Then you can select one of these options: Split Vertical ( Ctrl +...
Read more >
Visual Studio Code User Interface
Editor - The main area to edit your files. You can open as many editors as you like side by side vertically and...
Read more >
Manage pages and spreads in InDesign - Adobe Support
To move pages from one document to another, open both documents. ... can choose Window > Arrange > Tile to display documents side...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found