In VS Code with split panels, open reference in already open file

I have VS Code 1.38.0.

I'm programming in C and I like working with files open side by side. Let's say I have a file "L" open on the left side and a file "R" open on the right side. If there is a function call in file L that is defined in file R, if I right-click on the function call and select "Go to Definition", a new tab with the file R will open on the left side and now I have file R open twice. What i want instead is for the already open file R to just go to the definition of the function. Is there any setting to enable that?

This behavior actually works when you have left panel only and multiple tabs but doesn't work if you have both left and right panel open.


"workbench.editor.revealIfOpen": true

This should do the work. It's a Setting in VSCode