Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jump to definition in split pane ? #3480

Open
gomesalexandre opened this issue Feb 11, 2019 · 2 comments
Open

Jump to definition in split pane ? #3480

gomesalexandre opened this issue Feb 11, 2019 · 2 comments

Comments

@gomesalexandre
Copy link

Is your feature request related to a problem? Please describe.
I'd like to be able to jump to definition in a split pane when doing gd, something like gD maybe ?
Describe the solution you'd like
gD (or some other keybinding) should open a split pane if not opened already, else if opened, jump to definition there. Not sure if VSCode API allows such a thing.

Thanks a lot for the help !

@J-Fields
Copy link
Member

gd calls editor.action.goToDeclaration. Not sure there's a parameter or anything that would allow this.

@jgarciaokode
Copy link

Map vscode command to "gv" for example and you will have it, the problem is "C-o" is not working after this jump
{
"before": ["g", "v"],
"commands": ["editor.action.revealDefinitionAside"],
"when": "editorHasDefinitionProvider && editorTextFocus && !isInEmbeddedEditor"
},

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants