Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VSCode: If a file already has a tab open on another pane (split pane setup), make existing tab active

I'm not sure if this is possible, and wasn't sure where to even begin looking. Thought the community would be better suited to give ideas or suggestions on how to achieve this.

I have a split screen setup with a single VSCode window. I noticed that the same exact file, when opened on a tab on the left pane, can also be re-opened with another tab on the right pane - at the same time.

Is there a way to specify a behavior or setting where, whenever I cmd + p and open a file that already has an existing tab, I can bring that existing tab to the foreground instead of opening another one?

like image 325
snakesNbronies Avatar asked Dec 03 '17 18:12

snakesNbronies


1 Answers

You can configure "workbench.editor.revealIfOpen": true in settings to always reveal a file if already opened in any other group.

like image 192
Benjamin Pasero Avatar answered Sep 27 '22 18:09

Benjamin Pasero