Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

vscode: Go to definition in other editor pane

If I go to a definition of a function and the file is already open in another tab in the same editor pane, the definition will be shown there. However, if the file is open in another editor split screen pane, the file will be opened again in the original editor.

Is it possible to change that behavior? Especially, if the file containing the definition is open in both panes (like when the definition of the function is in the same file where I call Go to definition), is there the possibility to jump to that definition in the other editor?

like image 663
McLawrence Avatar asked Jul 11 '18 07:07

McLawrence


2 Answers

This is already a setting in version 1.35.1. Look for "Reveal If Open" in Settings (Workbench › Editor: Reveal If Open)

like image 130
Miguel Reyes Avatar answered Jan 10 '23 22:01

Miguel Reyes


I believe that you are describing this issue

Should be fixed in VS Code 1.26+ (aka, the current VS Code insiders build)

like image 25
Matt Bierner Avatar answered Jan 10 '23 22:01

Matt Bierner