I’ve recently downloaded Unity for the first time, and started to try and create my first games, but I’ve run into a critical error. I cannot open C# files because it asks what to open .cs files with. If I double click them, it opens the Unity hub. I literally do not know a single thing on how to get around this error and I am stuck. I don’t know what I can do, if there’s anyone that can help, please leave a reply. I need some help bad.
This may help you with intellisense and possibly other Visual Studio integration problems:
Sometimes the fix is as simple as doing Assets → Open C# Project from Unity. Other times it requires more.
Other times it requires you also nuke the userprefs and .vsconfig and other crufty low-value high-hassle files that Visual Studio tends to slowly damage over time, then try the above trick.
Barring all that, move on to other ideas:
Also, try update the VSCode package inside of Unity: Window → Package Manager → Search for Visual Studio Code Editor → Press the Update button
Also, this: No suggestions in Vscode
Thank you for the help, but since I have a tiny brain, I probably did something wrong, and this did not work.
I tried to update the Visual Studio Code Editor, but that was unsuccessful as it appeared to be up to date.
I looked through open the C# project with unity, but I have no freaking clue how to find Unity in my file explorer.
I read through some solutions, and they didn’t appear to help me all that much.
If you’ve got any other solutions, please forward them to me. I just want to be able to use Unity.