简体   繁体   中英

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?

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.

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

---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

导航到 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 .

导航到 Visual Studio 上的“在新窗口中打开文件夹”选项的屏幕截图

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM