Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you open file in split editor in VSCode?

I have this:

enter image description here

And I want to add a keyboard short cut such that it will open the file in a new split window like this:

enter image description here

In my keybinding.json, what is the name of this action?

like image 267
Tinker Avatar asked Mar 06 '26 11:03

Tinker


1 Answers

There is a keyboard shortcut for this, breadcrumbs.revealFocusedFromTreeAside

Ctrl+Enter (macOS: Cmd+Enter) in the Quick Open Ctrl+P (macOS: ⌘P) file list.

see https://code.visualstudio.com/docs/getstarted/userinterface#_side-by-side-editing

Likewise you can do this from the Explorer with explorer.openToSide

like image 191
Austin S Avatar answered Mar 09 '26 06:03

Austin S



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!