VisualStudio not showing quickcode/tooltips for Unity

For some reason MS VisualStudio doesn’t show quickcode/tooltips for Unity’s Classes/Methods like Vector3, gameObject, or ForceMode2D does anyone know how to fix this?

P.S. Java is my main language, so sorry if Class isn’t the right word for a C# script.

Make sure to install Tools for Unity: Visual Studio Tools for Unity | Microsoft Learn

Make sure you run Visual Studio from Unity, by using Assets/Open C# Project.

Then, in VS, invoke intellisense with Ctrl + Space, and on the bottom hit the little green plus:
159190-annotation-2020-05-11-155314.jpg

It will make intellisense suggest things from namespaces you have not imported yet.

159191-annotation-2020-05-11-155443.jpg

Some more context would be helpful, but maybe it isn’t installed into VS.

To

  • fix this, go to Visual Studio
    Installer (press windows and then
    search it up).

    • Then click on Modify on the current
      version of VS

    • Then go and find unity and install
      their packages.

Also, I recommend that you learn C# since Java and C# are pretty similar. Plus more people usually give answers in C#.

Here is an example of what I mean.

As you can see I’m typing Vector3, and on the right it shows the package, but it’s not showing UnityEngine.CoreModule which is the package it should be in. Iv’e checked and I have .Net Desktop Development and Game Development with Unity workloads installed to visualtstudio.