VS 2013 "Go to Definition" Tab Placement

I just made the switch from VS2010 to VS2013 and ran into an odd bug / function without a visible workaround.

In VS1010, I’m used to clicking “Go to Definition” in the context menu above the selected class to open the corresponding .cs file in a new tab.

VS2013 has the same function, but for some unknown reason, it attaches a new tab to the right, and, even worse, subsequent calls to Go to Definition to view additional classes lead to the tab of the previously selected class being closed.

I found that these awkwardly placed tabs can be kept open and aligned correctly, as the user expected by manually clicking on the small “keep open” button. But for this, every time I go to the class through "Go to the definition", this is an obstacle to the workflow.

Is there any way to disable this weird behavior?

Illustration # 1: By clicking "Go to Definition" in the selected class ... enter image description here

Illustration # 2: Strange right-aligned tab - result: enter image description here

+6
source share
2 answers

In the options in Environment > Tabs and Windows uncheck Allow new files to be opened in the preview tab .

enter image description here

+13
source

I really don’t think it’s weird, in fact I think it’s a big improvement.

Sometimes you just want to see the definition and return to work in the previous class, so this new behavior avoids opening a large number of "useless" documents that you will never use.

Otherwise, when you go to the definition, if you want the document to remain open, you can change something in it or just click in the temporary banner and it will automatically open the document for you

0
source

Source: https://habr.com/ru/post/987152/


All Articles