Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Intellisense Not Working with Visual Studio (Fix)

Discussion in 'Code Editors & IDEs' started by DavidG_Fenex, Feb 27, 2020.

  1. superspartan591

    superspartan591

    Joined:
    Sep 16, 2021
    Posts:
    1
    A mi me decía que necesitaba el NET Framework 4.7.1, lo descargue, volví a recargar y me funciono
     
  2. MogtabaToman

    MogtabaToman

    Joined:
    Apr 16, 2022
    Posts:
    1
    Thanks man <3
     
  3. Anthony0331

    Anthony0331

    Joined:
    Apr 27, 2022
    Posts:
    1
    Thanks a lot!!!
    It works!!!
     
  4. Ozan_Yazici

    Ozan_Yazici

    Joined:
    May 1, 2022
    Posts:
    1
    It' s work thank you so much
     
  5. timoteospbr

    timoteospbr

    Joined:
    May 6, 2022
    Posts:
    1
    Thank you very much! You saved my week!
     
  6. orreborre

    orreborre

    Joined:
    Feb 18, 2014
    Posts:
    21
    Just to add here since this seems to be the thread that pops up if you google "unity vscode autocomplete not working"; if you started having problems again all of a sudden after 25th of May 2022, there was an update to the C# extension (omnisharp) that made things stop working for me.
    After reading the thread and following the advice in this post https://forum.unity.com/threads/help-vscode-intellisense-stopped-working-again.1286612/#post-8163824 by tmoliter as a follow-up on the post by
    _Adriaan, I got it working again.
    Thank you tmoliter and _Adriaan!
     
  7. j11n

    j11n

    Joined:
    Oct 30, 2021
    Posts:
    3
    thank you ! this fixed it for visual studio community 2022 and unity 2021.3. note that there is no 'attach' setting in unity for my version; i just closed Visual Studio, went to unity preferences -> external tools, selected 'Microsoft Visual Studio 2022' instead of 'Open by file extension' for External Script Editor, checked all the boxes under 'Generate .csproj files for:, and then clicked regenerate project files, closed and opened unity and clicked the script to relaunch visual studio. Then all libraries turned red (not found), and I had to allow visual studio through my windows firewall(?), it took a moment; then all the red went away and code completion on unity objects works! I'm guessing it works because generated the .csproj file for Visual Studio that tells it about the Unity libraries and also told it to download something that is needed (config? VS/Unity connector? no clue).

    FYI, I gave up on VS code previously and went to Visual Studio because VS code and the Omnisharp plugin and my windows .NET install were conflicting and preventing me from having any C# code completion, and Visual studio has a 'unity setup' install and is officially supported by MS for Unity development. Both are free.
     
  8. j11n

    j11n

    Joined:
    Oct 30, 2021
    Posts:
    3
  9. unity_0CE0289A5A14AC5402ED

    unity_0CE0289A5A14AC5402ED

    Joined:
    Jun 1, 2022
    Posts:
    1
    this is a lifesaver like i see youtubers with colors and intellisense and im like why dont i have that until i saw this. thank you actually so much
     
  10. Xtheo156

    Xtheo156

    Joined:
    Jun 9, 2022
    Posts:
    1
    Thank you so much, fixed it for me
     
  11. amitsharma1

    amitsharma1

    Joined:
    Jun 23, 2022
    Posts:
    1
    Worked for me thanks
     
  12. ibestovu4

    ibestovu4

    Joined:
    Nov 5, 2021
    Posts:
    2
    omg I love you!!! It worked!
     
  13. gilley033

    gilley033

    Joined:
    Jul 10, 2012
    Posts:
    1,174
    For me the issue was that I was using a assembly definition and the assembly had somehow become unloaded. All I had to do was right click the assembly in the Visual Studio Solution Explorer window and choose "Reload Project".
     
  14. J3P24

    J3P24

    Joined:
    Jul 14, 2022
    Posts:
    1
    It's exactly like you described, I sat easily the last hour on my PC and wondering why it wouldn't work, and then such an easy little small thing did make the differnce. Anyhow HUGE THANK YOU to you for posting this, otherwise I would have sat here for ever!!!
     
  15. Tuffa_Victor

    Tuffa_Victor

    Joined:
    Jul 9, 2022
    Posts:
    1
    I love you
     
  16. unity_D1320EEB0FE77A0F1E90

    unity_D1320EEB0FE77A0F1E90

    Joined:
    Jun 29, 2022
    Posts:
    1
    This worked for me. Thank you very much.
     
  17. kingsoonkit

    kingsoonkit

    Joined:
    Jul 21, 2022
    Posts:
    2
    It worked! Thanks A lot
     
  18. AustinMillerArray

    AustinMillerArray

    Joined:
    Aug 5, 2022
    Posts:
    2
    Using Unity 2021.3.7f

    The steps provided did not work for me (not saying they didn't have some preliminary affect though) so I had to dig deeper and I got it working by doing the following:

    1. Updating Mono (https://www.mono-project.com/download/stable/)
    2. Go to VSCode C# extension setting > Omnisharp: Use Modern Net > Disable it (was enabled previously)
    3. Preference > External Tools > Regenerate Project Files (everything selected)
    3. Restart VSCode and wait for the OmniSharp Log in the VSCode terminal to finish
    4. Intellisense started working
     
    WorldWideWind and Liminal-Ridges like this.
  19. VikingStormtrooper

    VikingStormtrooper

    Joined:
    Aug 12, 2022
    Posts:
    1
    It worked, thank you!
     
  20. Khudere

    Khudere

    Joined:
    Jun 7, 2014
    Posts:
    9
    thank you this worked for me
     
  21. PIK19

    PIK19

    Joined:
    Jul 23, 2019
    Posts:
    1
    I tried everything above and still. intellisense works for unity classes, but not for dotnet standard 2.1. So any .net classes like System only have "generated from metadata" descriptions. Where is pdb for this "Data\NetStandard\ref\2.1.0\netstandard.dll"? (Visual Studio 2019)
    Edit: spent all day trying different versions of unity, visual studio, reinstalling everything and.. Now it works. No idea how or why.
     
    Last edited: Aug 22, 2022
  22. The_Oathman

    The_Oathman

    Joined:
    Jul 9, 2016
    Posts:
    6
    I'm on mac, tried everything, well except one. I just restarted my device, and that seems to have solved it for me.
     
  23. PINODOGameDev

    PINODOGameDev

    Joined:
    May 27, 2022
    Posts:
    1
    Wow, it Worked! Thank you so much!
     
  24. sush333

    sush333

    Joined:
    Jan 26, 2015
    Posts:
    32
    I just want to say thanks and it worked.
     
  25. WorldWideWind

    WorldWideWind

    Joined:
    Sep 20, 2022
    Posts:
    1
    THANK YOU!!!
     
  26. ooenw7

    ooenw7

    Joined:
    Oct 14, 2022
    Posts:
    1
    I have been struggling with this for years now thank you!
     
  27. Mirsu

    Mirsu

    Joined:
    Apr 5, 2020
    Posts:
    1
    worked like a charm! thanks :)
     
  28. yesseruseryt

    yesseruseryt

    Joined:
    Oct 15, 2022
    Posts:
    2
    This worked! Thank you.
     
  29. whensocksplay

    whensocksplay

    Joined:
    Sep 25, 2022
    Posts:
    1
    Just wanted to say that I had both the unity tools installed and the edit>preferences thing done, what I was missing was to check ALL the boxes in edit>preferences, and also right click the script and open as C# project!
     
  30. phyllip2004

    phyllip2004

    Joined:
    Oct 18, 2022
    Posts:
    1
    I didn't find any "Editor Attaching" but this worked with unity 2022 and VS 2022.
     
  31. keremcemerturk

    keremcemerturk

    Joined:
    Oct 29, 2022
    Posts:
    1
    Thank You <3
     
  32. DEFAULTcxz

    DEFAULTcxz

    Joined:
    Aug 8, 2022
    Posts:
    1
    Thanks! This helped.
     
  33. The_Coding_Project

    The_Coding_Project

    Joined:
    May 18, 2019
    Posts:
    1
    It worked as you stated. Thank you!!
     
  34. krobx

    krobx

    Joined:
    Nov 25, 2022
    Posts:
    1
    Great!
     
  35. pardeepparmarsingh

    pardeepparmarsingh

    Joined:
    Nov 25, 2022
    Posts:
    2
     
  36. pardeepparmarsingh

    pardeepparmarsingh

    Joined:
    Nov 25, 2022
    Posts:
    2
    super thanks to you bro
     
  37. rayexe

    rayexe

    Joined:
    Nov 27, 2022
    Posts:
    1
    thank you so so so so soooooooo much
     
  38. hoshivina

    hoshivina

    Joined:
    Nov 26, 2022
    Posts:
    2
    Many thanks, it worked for me, a newbie. I wonder why unity doesn't set it as default?
     
  39. FeldarTheFabulous

    FeldarTheFabulous

    Joined:
    Nov 27, 2022
    Posts:
    2
    Make sure the Unity Code Snippets extension is installed. You may need to run the following command inside the Command Pallette: ext install kleber-swf.unity-code-snippets
     
  40. Helladah

    Helladah

    Joined:
    May 5, 2018
    Posts:
    254
    What do you ean with Editor Attaching pal?
     
  41. Sxawl

    Sxawl

    Joined:
    Jan 1, 2023
    Posts:
    1
    Helladah likes this.
  42. Psychotoke

    Psychotoke

    Joined:
    Oct 11, 2022
    Posts:
    2


    DUDE YES!!! I've been wondering how all the guys on the tutorials have this, making it so much easier for them. Googled it and found this gem. You are a rockstar!
     
  43. MarionOdyssey

    MarionOdyssey

    Joined:
    Jan 30, 2023
    Posts:
    5
    You saved my time. Thank you.
     
  44. MarionOdyssey

    MarionOdyssey

    Joined:
    Jan 30, 2023
    Posts:
    5
    You saved my time. Thank you.
     
  45. VinCactus

    VinCactus

    Joined:
    Dec 25, 2022
    Posts:
    1
    Worked like a charm! Thanks!
     
  46. sairaj9396

    sairaj9396

    Joined:
    Nov 7, 2022
    Posts:
    4
    Big thank you for this!
     
  47. Gloomshroud

    Gloomshroud

    Joined:
    Apr 11, 2014
    Posts:
    27
    Still working. Thank you for your efforts.
     
  48. michael200101

    michael200101

    Joined:
    Jun 30, 2022
    Posts:
    4
    OMG thank you so much. I have searched the entire internet for about 2 weeks now and already just accepted that it doesnt work for me. The Code was working but I didnt have any colors for unity specific code and the program didnt suggest anything. It is working now. Can i send u a beer bro?
    I don't know how i didnt find this earlier but i am glad i did now
    I am so happy
     
  49. chrisc99

    chrisc99

    Joined:
    Jul 5, 2015
    Posts:
    1
    Thanks. Works with 2019 VS Enterprise. It was driving me mad!
     
  50. breban1

    breban1

    Joined:
    Jun 7, 2016
    Posts:
    194
    This did it for me. Thanks!!!