AlphaWolf464
AlphaWolf464

Reputation: 31

Multiple Visual Studio files in the same window

Whenever I open up a Visual Studio file from within the Unity window it opens each file in a separate window, as opposed to being separate tabs in the same window. How would I fix this?

Upvotes: 3

Views: 1487

Answers (4)

Giggioz
Giggioz

Reputation: 477

For me only this solution worked (from This Thread)

I just removed Visual Studio Editor package from Package Manager, and the problem looks like fixed now

Upvotes: 1

next age
next age

Reputation: 1

I had this problem as well, I believe it was related to upgrading a project to a new version of unity. I resolved it by deleting the .csproj files and the .sln file for the project. Unity just recreated them immediately, and the files correctly opened in the same instance of VS.

Upvotes: 0

Valeriu Seremet
Valeriu Seremet

Reputation: 568

Apparently its a common problem on unity forums (you can check them: 1, 2, 3)

The problem appears to be related to updatinng the project to a new version of Unity

The solution is to delete the .csproj files and the .sln file for the project. Unity will just recreate them immediately, and the files will correctly open in the same instance of VS.

Upvotes: 1

will-yama
will-yama

Reputation: 680

---Edited by answerer - this solution is for Visual Studio Code, and not Visual Studio. It does not answer @AlphaWolf464's question correctly.---

This might be due to the settings set in the preferences. Follow the directions below to change these settings (below is for Mac, so it may look a bit different for Windows)

Open Visual Studio and navigate to Code --> Preferences --> Settings

Screenshot of navigating to the Settings menu on Visual Studio

From the left options, navigate to Window --> New Window

If the Open Folders In New Window option is set to on, change this to off.

Screenshot of navigating to the Open Folders In New Window option on Visual Studio

Upvotes: 0

Related Questions