Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Visual Studio Not Showing Proper Suggestions

Discussion in 'Scripting' started by GrayWoolsey, Aug 18, 2020.

Thread Status:
Not open for further replies.
  1. GrayWoolsey

    GrayWoolsey

    Joined:
    Apr 20, 2018
    Posts:
    27
    I've updated to Unity version 2020.1.2F1 and now Visual Studio code isn't showing suggestions for Unity. This happened before with an older version of Unity and I found a rough fix where you would open it in Visual Studio 2019 then go back to Visual Studio code and it would work but that hack is no longer working.

    https://imgur.com/a/V9k6EJ6
     

    Attached Files:

  2. MaskedMouse

    MaskedMouse

    Joined:
    Jul 8, 2014
    Posts:
    1,058
    Make sure that Visual Studio Code is appointed as External Tool in the Editor Preferences.
    If it already is set correctly, try regenerating csproj files button there
     
  3. GrayWoolsey

    GrayWoolsey

    Joined:
    Apr 20, 2018
    Posts:
    27
    Yes Visual Studio code is listed as my external tool and I've already tried regenerating the csproj file and it hasn't fixed it.
     
  4. MaskedMouse

    MaskedMouse

    Joined:
    Jul 8, 2014
    Posts:
    1,058
    Do you have the latest com.unity.ide.vscode package installed?
     
  5. Deleted User

    Deleted User

    Guest

    I'm trying to do this too. I have the latest stable release of Unity, the latest version of Visual studio. I'm trying to follow along with the Junior Programmer series in Unity Learn. I type in my first line of code requested, which is transfrorm and I am not getting any tips underneath the word that are correct.
     
  6. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,762
    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:

    https://forum.unity.com/threads/intellisense-not-working-with-visual-studio-fix.836599/

    Also, try update the VSCode package inside of Unity: Window -> Package Manager -> Search for Visual Studio Code Editor -> Press the Update button

    Also, this: https://forum.unity.com/threads/no-suggestions-in-vscode.955197/#post-6227874
     
    Deleted User likes this.
Thread Status:
Not open for further replies.