create script visual studio is changing

hi,
when i create a script in unity always visual studio starts but the script not opening, what can i do?

Once VS opens, either double click on script in Unity, or open script via solution panel in VS.

ok sry, thats not the problem, i dont want open the script :slight_smile:
but when i create new script it switched automatically to the VS.exe but i want believe in unity.exe to make more new scripts…

Just create / duplicate scripts in VS.
Only then, you will need remember, to change monobehaviour class name, to match file name.
If is not inheriting monobehavior, that not the issue.

Once you finish creating / editing scripts, just refresh Unity Ctrl+R.

Other than that, maybe there is option to disable auto opening VS, but is not an issue for me.
Is rather convenient.

create new script and then it changes to vs.exe, but does not open the script, if he would at least open the script with, no I have to change then again to unity.exe and double click on the script, I see no sense in why he changes after creating the script in the vsexe and the script does not open and so I always have to switch back and forth between the two applications, I was actually used to win7 that the vsexe was not started automatically after create the scripts … it starts only my control when I double click the script and open it … I hope there is somewhere vllt an option to adjust? maybe its a win10 bug, idk

I would also be enough if he just after creating the script opens the script in vs.exe, that would be less awkward … its just a bit bad workflow, to switch back to unity.exe to open it …

okay i fixed it, its a option in VS > unity tools, set track documents to true

thx 4 ur time :slight_smile: iam a noob

In VS you should see something similar like this.
Of course, your folder structure will be different.
But you will see all scripts files here.

5158265--511040--upload_2019-11-9_17-45-56.png

You can work on scripts in VS, without even opening Unity.