I'm using Visual Studio 2022 Community.
If I right click, say, a class name in some code and 'Go To Definition' it'll open the file's tab on the right instead of left (as it would if I double clicked the same file to open it).
On the tab is a button saying 'Keep Tab Open', implying it might be closed at any point automatically; though it never was.
How can I make 'Go To Definition' on a class just open the file as normal, on the left, like double clicking a file?
I've searched extensively and can't even find any references to what's going on.
Thx
CodePudding user response:
That feature is called a Preview Tab. Only one Preview Tab can be open at a time, so the next action you take that would open a different one would close this one (hence the "Keep tab open" button).
You can find the settings for it in Tools -> Options -> Environment -> Tabs and Windows.