Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
22
Question by MoonOwlGames · Oct 09, 2015 at 09:34 AM · editor-scripting

Unity keeps opening new instances of Microsoft Visual Studio

Every time i double click a script in Unity it open a new instance of Microsoft Visual Studio, even if that script is already open on a previus one. This takes a lot of time and MVS keeps showing mensages telling that the files modified in another program. Any Ideia whats going on and how to fix it? I just want to open the files in some new tab, not a whole other program.

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image meat5000 ♦ · Oct 09, 2015 at 09:34 AM 0
Share

Go to yo ur preferences and change it to $$anonymous$$ono, although it does the same thing, but it wont open multiple instances.

Personally I use Notepad++ as its the quickest easiest thing to use. Plus the latest update has added coding shortcuts.

Really though, you dont need to double click files from Unity. They should all be accessible directly from VS anyway.

17 Replies

· Add your reply
  • Sort: 
avatar image
109
Best Answer

Answer by baheard · May 06, 2016 at 09:08 AM

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.

Comment
Add comment · Show 21 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image semihkekul · Jul 17, 2016 at 12:32 PM 0
Share

That works, thanks.

avatar image kornica3d · Nov 11, 2016 at 06:22 PM 0
Share

OH $$anonymous$$Y GOD! YOU ARE A GENIUS! Thanks!

avatar image bigd · Nov 13, 2016 at 08:24 PM 0
Share

You da man!

avatar image DistulX2 · Jan 14, 2017 at 08:36 AM 0
Share

worked for me, thank you!

avatar image NinjaISV · Feb 23, 2017 at 08:56 PM 1
Share

Amazing! You are awesome!

Show more comments
avatar image
10

Answer by Punfish · Dec 05, 2017 at 06:01 PM

I encountered another situation where the accepted answer did not work. When you first install Visual Studio and try to open a CS file through Unity it will prompt you, asking which program to open the CS file with. Often the only option is Visual Studio Version Selector; this is not the right answer. Instead within Unity go to the Edit menu bar -> Preferences -> choose External Tools. Under External Script Editor click browse and search for DevEnv within your Visual Studios folder. Usually found under

C:\Program FIles x86\Microsoft Visual Studio\Version##\Community\Common7\IDE\

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
6

Answer by Nazirzadeh · Nov 07, 2018 at 05:36 AM

Just close the Unity, then only clean the .sln file located in your project folder.

Comment
Add comment · Show 3 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image zibas · Nov 23, 2018 at 07:35 PM 1
Share

This is what finally worked for me.

avatar image jipsen · Aug 25, 2020 at 10:24 AM 0
Share

Worked for me too!

avatar image OmerPasa3328 · May 13, 2021 at 08:58 AM 0
Share

thanks bro :)

avatar image
3

Answer by nikokoneko · May 06, 2018 at 08:02 AM

It still happens to me on Macos, Unity 2018.2.0b3. Nothing helped, and it's making it completely impossible to work. It's been frustrating lately as there hasn't been a version of Unity in over a year that didn't had at least one (often more) deal-breaking bug that made it useless...

Comment
Add comment · Show 7 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Punfish · May 06, 2018 at 05:08 PM 0
Share

Did you try my solution?

avatar image nikokoneko Punfish · May 06, 2018 at 07:59 PM 0
Share

Actually I have to admit I didn't try your solution because on $$anonymous$$acOS I wasn't really sure what app should I pick (just browsing for VS app yielded same results as selecting Visual Studio directly in Preferences).

avatar image Punfish nikokoneko · May 07, 2018 at 12:10 AM 0
Share

I don't know what the file structure looks like for the VS install on a $$anonymous$$ac but if like a Windows computer there are many applications (exe win, app mac) to choose from in the Visual Studio folder and sometimes the app selector picks the wrong one. Generally speaking with development programs there is a CO$$anonymous$$$$anonymous$$ON folder, then an IDE folder somewhere nearby, and commonly in the IDE folder you will find the application to choose.

You could try emulating Windows or dual booting into Windows, as dev tools tend to work better on Windows versus $$anonymous$$ac. I know that's not an ideal solution but it may be the best one. I've personally been with Unity on Windows for over 2 years and I haven't had any issues I wasn't able to quickly resolve.

Show more comments
avatar image Recalc · May 09, 2018 at 03:12 AM 0
Share

I had the same issue, and realized that in my Applications, there were two versions.of visual studio installed. One had old in the title, and deleting that solved my issues.

avatar image khizer_awan · May 14, 2018 at 10:00 AM 0
Share

Same Issue appeared after i updated my unity... Now I am on $$anonymous$$acOs 10.12 and Unity 2018.2.0b3.

avatar image yusufdemir2012 · Oct 19, 2020 at 08:20 AM 0
Share

Didn't work for me. The problem is appearing on macOS and "Unity 2020.1.6 & 1.5". When I downgrading project to 2019.3, the problem is fixing for me

avatar image
3

Answer by EddieOffermann · May 23, 2018 at 07:23 PM

I wrote a long, very detailed explanation of the steps I took to resolve this VERY persistent problem and the site errored... I don't have time to write it all again.

Short version:

  1. Do everything listed above.

  2. Rt-click on a .cs file and select "Get Info"

  3. Change default application for all files of that type to open in Visual Studio

  4. Create a new project and solution in Visual Studio. Add the existing Assets folder to the project.

There's more that I did to make this work really, really well but my prior post had >20 steps.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image JVene · Jul 28, 2018 at 05:31 AM 1
Share

After that happened to me a couple of times, I've taken to writing on a text editor or word processor then pasting the result to the web.

  • 1
  • 2
  • 3
  • 4
  • ›

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

56 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Add trasform to list using editor gui. 1 Answer

SetActive in Editor script strange behaviour 1 Answer

Is there a some sort of OnBuild() event for the editor? 1 Answer

Custom Editor Gameobject foldout C# 2 Answers

How set order in [MenuItem] attribute like in [CreateAssetMenu] attribute? 2 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges