Rounix
Rounix

Reputation: 41

Unity does not open scripts using vscode, even tho it is set as an external text editor

So becouse of my visual studio 2017 trial is about to end, i decided to switch to vs code and make a new project. The problem is that i cant open any scripts by double-clicking in that new project using vs code. Simply nothing happens. When i go to my older project and try to open scripts there using vscode everything works fine. When i try to create new projects the problem with scripts not opening persists.

Both of the projects run on the same unity version, and both of them have vscode set as an external script editor in the preferences. Task manager doesnt show anything related to vscode.

Thanks for any help!

Upvotes: 3

Views: 2176

Answers (2)

Kessen
Kessen

Reputation: 21

I had same problem where it opened up VS but not the exact script I was trying to open. I found out I had to 'reset argument' under "Edit--> Preferences --> External Tools" and just press reset argument. Or just copy my line below:

"$(ProjectPath)" -g "$(File)":$(Line):$(Column)

External tools

Upvotes: 2

rrswa
rrswa

Reputation: 1060

You need to change your external editor to VsCode.

Go to Edit -> Preferences -> External tools Click on the External Script Editor and browse for vscode.

Upvotes: -1

Related Questions