Unity C# file is not opening in VScode with double clicking on C# file

Started by
2 comments, last by WeirdBeard 4 years, 7 months ago

Hi, I am working on Unity 2019.2 and I am using C# code in Visual Studio Code 1.38.1 but since 2 days, I found a bug in connection with Unity and Visual Studio code that i can not open C# file with double click on it in Visual studio code.Now please help me to solve out this kind of issue in Unity and Visual Studio Code.

 

Thanks,

Gaurang

Advertisement

Have you taken a look into your Preferences if VSC is still the default editor?

I have occasionally had this problem with Unity 2019.2 and VSC.  I have no idea what causes it but I found a workaround with rebooting, opening VSC with a Unity CS file, then starting Unity and opening the project from there.  

I wish I knew what caused it but at least it works, so I'll wait until a future version of VSC or Unity to see if it goes away.

This topic is closed to new replies.

Advertisement