简体   繁体   中英

How do you open file in split editor in VSCode?

I have this:

在此处输入图片说明

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

在此处输入图片说明

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM