Reputation: 5255
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?
Upvotes: 17
Views: 1748
Reputation: 487
there is also the editor.action.revealDefinitionAside
command which will always open the file in another pane.
Upvotes: 1
Reputation: 2842
This is already a setting in version 1.35.1. Look for "Reveal If Open" in Settings (Workbench › Editor: Reveal If Open
)
Upvotes: 25
Reputation: 65603
I believe that you are describing this issue
Should be fixed in VS Code 1.26+ (aka, the current VS Code insiders build)
Upvotes: 5