Home > Net >  'Go To Definition' opens tab on right and doesn't keep open (implied), how to open as
'Go To Definition' opens tab on right and doesn't keep open (implied), how to open as

Time:02-10

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.

enter image description here

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.

Preview Tab options

  • Related