VS Code not working with Unity, no snippets

I am creating a game with Unity and I code with VS Code, however, there are no snippets. I remember there are snippets in visual studio (on windows, I am currently using mac). Is there something to install? Or some settings to change.

Settings I changed is in the picture.

5679787--592429--Screen Shot 2020-04-07 at 2.49.54 PM.png

Engine I am using: Unity 2019.3.4

My problem:

  1. No intellisense when using VS Code
  2. Everything in the same color (almost everything)

Things I have:

  1. dotnet
  2. Mono (i just download the pkg and installed it, nothing’s changed)
  3. VS Code C# extension

Everything is reinstalled TODAY, from the official websites. So don’t tell me to update anything.

Since no one post anything, I figured it out myself.
Go to your project’s folder. Find the Assembly C sharp.csproj and your [project-name].sln files, throw them out, restar t your project, go to preferences → external tools → select Visual Studio Code → check create csproj files, and u r ready to use some intellisense.

8 Likes

@JerryWeii27

There are several threads discussing VS Code issues. I like it and use it, but when auto complete (usually) has stopped working, solution hasn’t ever been the same for me… not happening currently, but seems like it has happened with some past versions.

Can you tell me where you can find those files?

Do you mean the [project-name].sln files?
You can find them in your “projects” folder.
Go to unity hub and go to this page. This is the path.6174397--675868--Screen Shot 2020-08-06 at 2.40.21 PM.png

Thanks sir, you helped me well!

This worked, even two years later. Too bad old forums don’t do upvotes, because this question is still being asked… lol

for me disabling Omnisharp: use modern net in vscode setting worked. Also it takes like a minute on my pc for it to actually start wroking - i.e. for a minute or so the autocompletion doesnt work but then it’s fine

1 Like

I still can’t find those files

This work for me. Thanks man!

I had a similar issue after installing some new ‘Extensions’ in VS Code.
Before dig into further, I checked the Edit/Preferences/External Tools where we choose the External Script Editor.
For some reason unknown, it was changed to ‘code.cmd(internal)’ so, I changed back to Visual Studio Code[1.81.1].
And that was all I needed to back on business with VS Code.

Unity Version: 2022.2.2f1

1 Like

Pardon if I’m replying to an old topic, but I’ve had a similar issue and I was able to solve it by downloading the .NET SDK

If you look into the project output in VS, this is where I got it from

Once installed you just need to go through the setup process by opening the SDK and reload your VS code.