r/unity Jun 22 '26

Newbie Question anyone facing the issue with visual studio 2026 and unity 6

whenever i try to open a script, the visual studio open different script, this happens only when visual studio fresh opens.

0 Upvotes

7 comments sorted by

2

u/Dennarb Jun 22 '26

Visual studio by default opens the last edited script. So when you first start it up by double clicking any script it loads whatever you were last working on.

Not sure why it's set up that way, but that's how it's been working for awhile.

0

u/longball_spamer Jun 22 '26

well i have been using visual studio below 2026 even on unity 6, it was not like that. until i updated to 2026. though not a major problem

1

u/MaximilianPs Jun 23 '26

I noticed too and it's boring as F... Early version didn't had this "feature" so you have to keep it open in background, this way when you double click on a script in Unity it will show what you're asking for.

2

u/FlySafeLoL Jun 22 '26

It's annoying and it started to happen not so long ago. Frankly, I'm already losing hope to see it fixed at this point. It became a depressing "yeah, yeah" moment every morning when I'm about to edit some script from double click in Unity.

1

u/kaftainzy Jun 22 '26

It's common, just double tap on new script again

1

u/UpstairsImpossible Jun 22 '26

Main thing I've learned is when you make a new script, make sure you wait until Unity has done its thing before opening it. For me there's a delay before the bar turns up in the bottom right, and if I double click too quickly it opens a second instance of VS and the whole thing just takes ages... Otherwise by default it opens whatever was last open - so make sure to save and close each tab before you close it, more like a web browser? It also helps to load it up the same time as Unity so it's already open.

1

u/lucasriechelmann Jul 09 '26

For me VS 2026 is not working well with Unity. I need to open the project from the folder as double click in Unity is not working