Loduwijk
Loduwijk

Reputation: 1977

Visual Studio Open Class' File From Another File

In Visual Studio, if I right-click a symbol representing a class and select "Go To Definition", it shows me the file that contains the class definition but not the same way as if I were to open the file.

Instead, the tab has the title of the class' file's name, but the tab shows up on the right instead of on the left, and it is not persistent. If I right-click -> go-to-definition a different class, the new special tab overwrites the previous special tab.

If I want to actually have the file open normally so that it does not go away prematurely, how do I do that? It is a nuisance to 1) "Go To Definition" 2) Note filename 3) Go search for that file 4) Open that file (in which case the special tab moves over to the left and acts as a normally opened tab).

How do I open a class' definition file from within another file that references it?

I am currently using Visual Studio 15.

Upvotes: 0

Views: 633

Answers (1)

Sergey Vlasov
Sergey Vlasov

Reputation: 27900

You can configure opening new files not in a preview tab in VS Tabs and Windows options:

enter image description here

Upvotes: 1

Related Questions