microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
162.66k stars 28.69k forks source link

[Request] Keybinding / scriptability of target pane for opening file with Ctrl/Cmd-P #14443

Closed phrohdoh closed 7 years ago

phrohdoh commented 7 years ago

I think it would be quite useful if users could open a file directly into the right pane instead of opening said file then dragging the tab to the right part of the screen.

I am really requesting this so that I can eventually get behaviour similar to :vnew in https://github.com/VSCodeVim/Vim.

:[N]vne[w] [++opt] [+cmd] [file]            *:vne* *:vnew*
        Like |:new|, but split vertically.  If 'equalalways' is set
        and 'eadirection' isn't "ver" the windows will be spread out
        horizontally, unless a width was specified.
kaiwood commented 7 years ago

You can. Just hold CMD down before pressing Return. ;)

phrohdoh commented 7 years ago

You are right! I could have swore I tried that. I'll close this then.