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

Intellisense not working when using Visual Studio Code [SOLVED]

Discussion in 'Editor & General Support' started by jzzja, Dec 31, 2018.

  1. jzzja

    jzzja

    Joined:
    Sep 28, 2017
    Posts:
    43
    I've read all I can find online about people with the same problem but nothing seems to work. I'm using the latest version of Unity (on Windows 7) and I've installed the C# extension for Code and also the .Net SDK, but intellisense doesn't work. It works fine when using Visual Studio and also worked fine when using Mono (previous Unity version) but it just doesn't work using Code. I tried it using a previous version of Unity (when Mono develop was included) but Code didn't work then either.

    From this (https://code.visualstudio.com/docs/other/unity) I'm not sure if the 'Unity Snippets' extension is required or if intellisense should work without it.

    Any advice appreciated.

    Thanks
     
    KokodokoGames and nogxx like this.
  2. jzzja

    jzzja

    Joined:
    Sep 28, 2017
    Posts:
    43
    I've got this working now. The problem was Omnisharp wasn't starting, I added 'C:\Windows\System32' to the path environment variable and it now works fine.
     
    nogxx likes this.
  3. Charmbandit

    Charmbandit

    Joined:
    Mar 9, 2020
    Posts:
    1
    Help me out please jzzja, I'm struggling with this. ⬆️What does that mean in layman's terms for me 'path environment variables'?
     
  4. jzzja

    jzzja

    Joined:
    Sep 28, 2017
    Posts:
    43
    Here is some info how to add a environment variable (link)

    I don't use visual studio code anymore as I had nothing but problems with it (I'm using visual studio community instead)
     
  5. KokodokoGames

    KokodokoGames

    Joined:
    May 20, 2014
    Posts:
    40
    I can understand that. I've tried all the solutions I could find all over the internet but Intellisense just won't work in Visual Studio Code.

    I installed MONO, I installed .NET, I installed C# extensions and Unity extensions. I installed the VS Code package in Unity. Nothing helps. I don't get any install errors either - the omnisharp service IS starting in the background when I open C# files.
     
    offbeatside likes this.
  6. offbeatside

    offbeatside

    Joined:
    Jul 25, 2019
    Posts:
    1
    same here... :(