Fix Visual Studio Code Unity IntelliSense AutoComplete (ACTUALLY Working Solution)

Поділитися
Вставка
  • Опубліковано 12 вер 2024
  • This has been bugging me for years. I finally sat down and settled things by staring Unity and vscode deep in its eyes. Also giving them blue eyes. Yes, I beat the living code out of software. It's a living. Good night.

КОМЕНТАРІ • 385

  • @Someone-nx7gl
    @Someone-nx7gl 2 роки тому +14

    this guys is so calm and angry at the same time

  • @thejasezonakhro6609
    @thejasezonakhro6609 3 роки тому +29

    "Why... Why... Why..."
    Famous last words

  • @SquareTimber93
    @SquareTimber93 3 роки тому +44

    I love your voice. Like you have been let down by life and are just waiting for the void.

  • @PelinsuMarple
    @PelinsuMarple Рік тому +46

    Hello!
    One note for those who couldn't get it done with this exact method;
    - After opening the C# Project from Assets drop-down menu, enable "output" on visual studio by clicking View > Output and see if you need a specific .NET developer package. In my instance, I needed 4.7.1 so after installing it, the issue resolved.
    However, VS Code opens up 2 instances when i'm opening it for the first time using Assets>C# Project. One opens the general UI and the 2nd one opens the code itself. The one with the code still doesn't have intellisense but if i open the script on the first instance, intellisense works.
    WHY is this so confusing, I have no idea.

    • @nataneto_
      @nataneto_ Рік тому

      Great Advice!! It worked perfectly for me, thanks a lot!!

    • @arsis3748
      @arsis3748 Рік тому

      Thank you!

    • @abduuxtuto3505
      @abduuxtuto3505 Рік тому

      Yes I did the same and it worked!

    • @ricardomartinez-kn2ci
      @ricardomartinez-kn2ci Рік тому

      thanks!!

    • @pugzilla3597
      @pugzilla3597 Рік тому +3

      Literally took me 20 seconds after reading this comment to fix my problem after searching online for like 2 hours

  • @michaellarsen9334
    @michaellarsen9334 3 роки тому +144

    Thanks, it helped knowing I am not alone

    • @adamfather2
      @adamfather2 3 роки тому +1

      Its my ffffffffffffff problem to 🤐

    • @recordedbybrandon
      @recordedbybrandon 3 роки тому +1

      Fr fr they make this part seem so easy smh

    • @gamajiyt8231
      @gamajiyt8231 2 роки тому

      Lol

    • @cocoduck7745
      @cocoduck7745 2 роки тому

      i'm this close to punching a hole through my computer, intellisense wasn't working form the start but now Codelens also stopped working

    • @abdulrahmanghannam480
      @abdulrahmanghannam480 Рік тому

      Me too

  • @AlanPCS
    @AlanPCS 2 роки тому +42

    Congrats man. Doing a better job then the docuentation writters from microsfot and Unity together.

    • @ratm4628
      @ratm4628 Рік тому

      Microsfot, XD

    • @AlanPCS
      @AlanPCS Рік тому

      @@ratm4628 And docuentation :p

  • @Tvl20
    @Tvl20 Рік тому +7

    So apparently there's this option you have to disable in order to use it with Unity now.
    In your settings look for; Omnisharp:UseModernNet
    And set that thing to false, close Code, go to Unity and open it via Edit > Open C# Project.
    Let it install as he did, and after that you're good to go. Even when opening scripts via double-click in future.
    You're welcome.

    • @ARPinky
      @ARPinky Рік тому

      This worked for me!

    • @chikenmess8613
      @chikenmess8613 Рік тому

      I thank you so much man you made my day

  • @malikbenslimane2873
    @malikbenslimane2873 2 роки тому +4

    Fuck me this actually worked. For years, I've been looking for a way to do this for 3 years. Thank you sir.

  • @VaustXIII
    @VaustXIII 3 роки тому +110

    I feel your struggle, brother. Thanks, it now works. l really love editing in VSCode (compared to VS), but I really hate how poorly it interacts with Unity

    • @khalifasaid2796
      @khalifasaid2796 2 роки тому +1

      buddy have you heard of text sublime before ?

    • @ipga13
      @ipga13 2 роки тому +5

      @@khalifasaid2796 yes and f*** no

  • @yugahoriuchi6665
    @yugahoriuchi6665 2 роки тому +9

    I LOVE YOU. I’ve spent my whole day yesterday watching countless videos and this is the one that worked for me! Very simple tutorial and saved me a ton! I hope you know you’re appreciated!!!😭😭😭😭

    • @sagaryerguntala909
      @sagaryerguntala909 2 роки тому

      Hello dear I am struggling to fix this issue. It's been a week but I couldn't. Can you please help me

    • @sagaryerguntala909
      @sagaryerguntala909 2 роки тому

      @IPL Updates What do we do now?

  • @AboutLeon
    @AboutLeon 2 роки тому +4

    Thanks! All I had to do was make sure to set it to Visual Studio in Preferences instead of Open by file extension, then load a script from Unity, accept Windows security prompt and intellisense worked right away! I almost feel bad for only watching for 13 seconds, but this video helped me fix it that fast. You rock!

  • @sintetico82
    @sintetico82 3 роки тому +21

    Aahah this video is so funny XD Every developer in their life has to fight with these things!

  • @AdizaSuvorova
    @AdizaSuvorova 3 роки тому +5

    It's a bit embarrassing but I literally cried half an hour ago bc I couldn't find a solution to this problem. Now it works. Thank you

    • @reubendaniel5691
      @reubendaniel5691 2 роки тому +1

      Nah it’s perfectly understandable, this stuff is so stressful lmao

  • @dakshjain6216
    @dakshjain6216 2 роки тому +2

    bro its not downloading for me its asking me for Sdk and still nothing happened

  • @itso6778
    @itso6778 2 роки тому +1

    this video is a whole mood ngl and I love it

  • @smarandas5529
    @smarandas5529 3 роки тому +12

    Finally a legit solution I was going crazy over this problem. Uninstalled and cleared all data sevral times but absolutely nothing happened. Doing the first steps in the video via external tools did the trick for me.

  • @crushl2451
    @crushl2451 2 роки тому +4

    Really had a good laugh when you said "installed it poorly". Man, I just installed Win 11 fresh, installed VSC (works like a charm), installed Unity and it wasn't in the list. My install skills must be incredibly low 😛

  • @edanduarte
    @edanduarte 11 місяців тому

    Thanks a million! I've been having this issue for YEARS!!! Whhyyyy, whyyy indeed. THANKS AGAIN!

  • @PurooRoy
    @PurooRoy 2 роки тому +1

    What I learnt from this video: Keep closing and opening VS Code until it suddenly decides to work.

  • @EscapedVillager
    @EscapedVillager Рік тому

    OMG thank you man !!
    and a quick tip
    you gotta pres ctrl+shift+P
    then select Omnisharp:Restart Omnisharp
    which will force to start it and runs the stuff like auto complete
    hope it help other people who will see this

  • @zatzu
    @zatzu Рік тому

    It worked!
    I've downloaded so many extensions and non of them worked.. THIS worked! Thank you.

  • @OwOkarma
    @OwOkarma Рік тому

    bro this vid was 2 years ago and still works I actually love you

  • @mokuuu
    @mokuuu 2 роки тому +4

    1. Thanks for the tutorial
    2. You made me laugh several times, love the way you did this tutorial

  • @andrewdavid9051
    @andrewdavid9051 3 роки тому +1

    I went through more than 5 tutorials and yours was the only one that made it work. Opening through assets open c# project showed me the error. Thank you so much 😭😭😭.

  • @treypoling
    @treypoling Рік тому +1

    I like this guy. He's just as pissed off as I am

  • @akshaymohandas9511
    @akshaymohandas9511 2 роки тому +1

    I went through so many forums but couldn't find the issue, but this helped thanks a lot.💌

  • @saeedbarari2207
    @saeedbarari2207 3 роки тому +2

    Bruh, i was so mad at this issue that even thought maybe i gotta download the good'ol unity 5 ! But then your video made me feel not alone XD , im gonna try this way, fingers crossed...

  • @TheEarlyAstrotype1024
    @TheEarlyAstrotype1024 2 роки тому +1

    In the last half of the video, now I probably know why Intellisense is not working, "yet".
    After opening C# script from unity, go to Output and in the right side there's choices box. Choose Omnisharp Log, you'll see there it's kind of loading. I think the IntelliSense is still loading. It will take something like 30 seconds on my laptop to load.
    I think it's probably OmniSharp that is doing the IntelliSense.

    • @happytofu5
      @happytofu5 Рік тому +1

      thanks! This helped me figure out why it did not work for me. I got error messages about having the wrong version of dotnet installed and I was also missing a developer pack apparently. I downloaded them from microsoft and now it works, yaaay!

  • @lj1643
    @lj1643 Рік тому +1

    Appreciate the video! You seriously inspired me to give it another go.
    At first it didn't work, but then I thought, maybe its a me problem 🤷‍♂
    To keep it brief, here is what I did:
    1. uninstalled every VSCode extension
    2. cleared my settings.json to an empty object
    3. redownloaded C# and Prettier VSCode extensions
    4. double clicked a new C# behavior file and triggered IntelliSense using CTRL + space (and it actually worked)
    I've been working with Unity for months and only now have the pleasure of using this feature.
    It's super worth getting this fixed because learning the Unity API without it is like walking through the jungle at night with no light. Sure you can RTFM, but this just makes that experience easier.

  • @tPlayerioT
    @tPlayerioT Рік тому

    i like how inconvenient things happens and your reaction to it

  • @usees8914
    @usees8914 3 роки тому +7

    I love you! This issue was the reason I stopped using VS Code to begin with. Now I'm glad I looked this issue up to see that had been solved; and in a funny way to. :)

  • @loopfelloff922
    @loopfelloff922 3 роки тому +2

    ohhhhhhh my gawd i have benn trying to solve this problem for 2 days finally someone worth trying
    earned a sub

  • @anitagairola1639
    @anitagairola1639 3 роки тому +1

    If it's not working just download the .Net Developer Pack 4.7.1 it worked for me and just close everything and start your project it will work. It worked for me..
    If it's still not working just wait for a while and it will work..

  • @CSharpShark
    @CSharpShark Рік тому +1

    Sorry I am (very) late but will this work for visual studio community 2019? I used it before my pc had to get fixed and it worked fine then but know it won’t tell me anything?

  • @DiamondRBXIsARat
    @DiamondRBXIsARat 3 роки тому +1

    idk why but mine is just so broken that this didnt even work :C

  • @JutendoSUS
    @JutendoSUS Рік тому +1

    Bro, you did a amazing job you helped me 2 times with this Video now! Thanks man!

  • @Jazztache
    @Jazztache 2 роки тому +2

    This was painful to watch. It'll all be worth it for a purely Linux-based Unity dev experience though.

  • @veloraptr9306
    @veloraptr9306 2 роки тому +1

    thank you so much i was about to cry because nothing worked on vs

  • @andrezaguayo4092
    @andrezaguayo4092 3 роки тому

    One easy thing to check that got it working for me. Make sure Edit>Prefrences>External Tools> External Script Editor is set to 'Visual Studio' and not 'Open by file extension'. It not the main problem but it started working for me after doing this.

  • @neonnicity606
    @neonnicity606 8 місяців тому

    It is the near end of 2023 and i STILL CANT GET INTELLISENSE WORKING. I’ve tried visual studio, i’ve tried visual studio code. NOTHING WORKS help me please

  • @Konslufius
    @Konslufius Рік тому

    Note for my future self:
    Dear future self, YOUR FUCKING UNITY KEEPS RESETTING YOUR EXTERNAL TOOLS SETTING!
    Hope you have a good day

  • @finuarts
    @finuarts Рік тому

    After 2 hours of looking for the solution, your video finally helped me. Thank you so much!

  • @nancygaur6705
    @nancygaur6705 2 роки тому +1

    Sir can you please solve this error in vs code "this language server has crashed 5 times in 3 minutes. It can be restarted." Fix it

  • @kophotograph1803
    @kophotograph1803 2 роки тому

    Thank you. Open the new Script, close VSC, got to Assets > Open C# Project worked for me!

  • @festi7399
    @festi7399 2 роки тому

    Hell, the whole Russian Internet doesn't know the answer to this question, and you helped. Your English-language content, as always, is top-notch; what you tell us for free, we sell for money. Thank you from another country. When I create my masterpiece, I will definitely promote your little channel.

  • @reubendaniel5691
    @reubendaniel5691 2 роки тому +1

    THANK YOU! I’m literally a noob to all of this and it’s frustrating that I have to do all of this stuff in the first place as I don’t understand what any of it means lmao. I just want to complete a unity tutorial 😭. Thanks again!

    • @disguisedpineapple4995
      @disguisedpineapple4995 2 роки тому

      hey its been a month since you replied, are you still coding, if so are you better? i just wanna know because alot of people stop coding after a few weeks

  • @denzilmoses8631
    @denzilmoses8631 3 роки тому

    bro i saw every celeb youtubers and didn't found the soln but with your video i found the solution thanks man!!

  • @Pitiflu909
    @Pitiflu909 2 роки тому

    Oh god man you saved me, i reinstalled Unity and Visual several times and it wasnt working but i found your video and it was instantly fixed, thanks a lot

  • @anthonyguy143
    @anthonyguy143 Рік тому

    My man is invoking the transform spirits to join his code...

  • @AdamVigas
    @AdamVigas 3 роки тому +2

    still doesnt work for me..i did it as you

  • @minhmang3372
    @minhmang3372 3 роки тому

    well mine doesn't have color (only white) no red underline for wrong code and don't have anykind of intellisense

  • @FernandoDenise2558
    @FernandoDenise2558 2 роки тому

    This worked for me until just recently, not sure what's changed but now none of these solutions are working... :(

  • @GameFlife
    @GameFlife Рік тому

    wow ... 1 minute in the vid and my issue have solve tks dude

  • @phee3D
    @phee3D Рік тому

    wasn't getting any code completion, clicking "Open C# project" in unity did the trick. Thanks

  • @MrDefrankoliver
    @MrDefrankoliver 2 роки тому

    If you still have this problem, try this: double-click the script. After VS being opened, right-click on you solution and click in "Reload project with dependencies". It worked for me.

  • @Galaxy_World
    @Galaxy_World 3 роки тому +3

    THIS NOT EVEN BC OF U BUT IT STARTED WORKING OMFG TY

  • @Christ0hell
    @Christ0hell 2 роки тому

    Ive been trying to figure this out for over an hour...... Thank you. opening C# Project within Unity worked.

  • @Arcann_bhp
    @Arcann_bhp Рік тому

    how can i get auto text like on visual studio community? in visual studio code it doesn't give me the whole line prediction like in communtiy

  • @nv7287
    @nv7287 2 роки тому

    Oh god I know this feeling!!! a whole day lost to this, sdk issues, hub, editors........ Watching this is a kind of therapy XD

  • @Meithighs
    @Meithighs Рік тому

    I've been at it for an hour what the hell is this crap i cant get the intellisense still after installing everything suggested all over stack overflow
    Received response for /v2/getcodeactions but could not find request.
    Received response for /quickinfo but could not find request.

  • @rybug
    @rybug 2 роки тому

    just changing the preferences setting fixed everything. i was about ot give up on ever learning to code because nothing worked, but just cahnging the directory fixed it

  • @horrest790
    @horrest790 2 роки тому +1

    And don't forget to install targeted .NET SDK, check OmniSharp Log in VSCode for that (if intellisense still doesn't work). It should output missing sdk and whatever. If OmniSharp can't load the project, Intellisense will not work
    Why is there no extension for that? I want to use VSCode as a script\text editor, why do I need to load all the project configuration files, install SDKs and whatever. It's all on the unity's part

  • @SigmaZer0
    @SigmaZer0 3 роки тому +1

    Do not hate visual studio code hate the decrepit Omnisharp!

  • @prinethfernando4436
    @prinethfernando4436 3 роки тому

    I felt "I am not alone "

  • @spasannobudd8937
    @spasannobudd8937 3 роки тому

    it just says Attempted to update project that is not loaded:

  • @inklink_5412
    @inklink_5412 3 роки тому +1

    I have tried everything I followed and not even this helps it won't even autocomplete when I go to assets and open C# project. did someone else have this problem and and fixed it if so pls tell me how. this is btw like the 5th tutorial I have watched about this problem please help I want to jump of a cliff
    Edit: I just noticed that the first time you opened through "open C# project" it downloaded something which did not happen to me, why -_-

  • @martinrossel7852
    @martinrossel7852 2 роки тому

    Thx guys, can't really came back to VS after using vsCode for so long

  • @rutvikrana512
    @rutvikrana512 3 роки тому +2

    I have windows 8 and its say you need .NET 4.7.2 or higher.
    But latest supported .NET for windows 8 is 4.6 .....
    Please Can Anyone Help ?

    • @fv4202x
      @fv4202x 3 роки тому

      stop using vscode its trash. im going to uninstall.

    • @rutvikrana512
      @rutvikrana512 3 роки тому

      @@fv4202x ... just google "No 1 Code Editor" LOL

  • @SleepyDinish
    @SleepyDinish 2 роки тому

    I also had this problem today, and your fix wasn't working, but then i disabled the setting "Omnisharp: Use modern NET" on the C# Extension. Now i can open .cs files normally and intellisense starts working just fine.

  • @synthoelectro
    @synthoelectro 3 роки тому

    I ran visual studio code in admin and that fixed it. Windows 10 was made for paranoid security people, it's the most frustrating version of windows that I have ever used. I've been using windows since 3.11, Windows for Workgroups.

  • @kronusexodues7283
    @kronusexodues7283 3 роки тому

    sadly this is actually not working. nothing gets downloaded when clicking on open C#-Project

  • @TheQamar32
    @TheQamar32 3 роки тому +1

    you just need to create new scripts after installing vs code . scripts created on visual studio wont have IntelliSense . create new scripts and open in vscode it worked for me

  • @harshalchougule6973
    @harshalchougule6973 3 роки тому

    Java auto complete not working it's just shows like simple text but keywords and strings shows in different colours

  • @most_likely_sein
    @most_likely_sein 2 роки тому

    I get some error when download c# extension it tells that is have to download something

  • @TheOfficalAndI
    @TheOfficalAndI 2 роки тому

    I had it working PERFECTLY and made the grave mistake to update VSC.....
    It's not working at all now. Not a single time.

  • @nachhilfehvm
    @nachhilfehvm Рік тому

    IT ACTUALLY WORKED. IT ACTUALLY WORKED.
    RESPECT

  • @YujinL
    @YujinL 2 роки тому

    ACTUALLY WORKING TO THIS DAY

  • @lagrangewei
    @lagrangewei 2 роки тому

    for some reason, unity hub does not set visual studio as the default editor when you install unity.
    in your unity project open the menu: edit -> preferences -> external tools -> external Script Editor: (set this to your actual editor)
    you need to change this for unity to show u the hidden project file setting for specify editor which then allow you to select 'generate project file' for the editor.
    once this is added, you will have a project with the UnityEngine namespace in the solution explorer in visual studio.

  • @Richard_Nixon-mr6rq
    @Richard_Nixon-mr6rq 2 роки тому

    THANK YOU THANK YOU THANK YOU, THANK YOU!!!!
    I tried so many other tutorials and yours SHOWED ME WHAT WAS WRONG THANK YOU!!!

  • @alexanderdebree9295
    @alexanderdebree9295 3 роки тому +3

    Also make sure that you have exactly the right dotnet installed which the OUTPUT asks for. that's not necessarily the latest version! Downgrading to 4.71, in addition to everything in this video, finally did the trick for me. Hope I saved someone some more frustration ;) enjoy!

    • @sarahpuspdew
      @sarahpuspdew 3 роки тому

      how do you downgrade the 5.0 to 4.71?

    • @alexanderdebree9295
      @alexanderdebree9295 3 роки тому

      ​@@sarahpuspdew I don't remember but I think I simply uninstalled and downloaded the proper version

    • @myselfidont
      @myselfidont 2 роки тому

      YES! THIS is what solved it. Thank you. Just look at the output in the console that the console says its looking for but is missing and then there should be a link it says to go to where you can download the right version.

    • @animalplayz9818
      @animalplayz9818 Рік тому

      Where does it say what version you need

  • @b0b0_
    @b0b0_ 7 місяців тому

    You sir are doing the Lords work 🙏🏾🙏🏾🙏🏾

  • @GurkiratATgammotech
    @GurkiratATgammotech 3 роки тому +1

    I was planning to work on a parkour game but vs wont work i was extremely pissed unitil i saw this video. Thank you big brain boi :D

  • @bhofmeister
    @bhofmeister Рік тому

    Man this has been my life the last few months. So weird that you have to keep reopening things like this to get it working

  • @ppoggrzz
    @ppoggrzz 2 роки тому

    Whenever I try to do the the "open c# project" step, there is an issue saying some projects had some trouble loading can you please help with that

    • @happytofu5
      @happytofu5 Рік тому

      I had problems loading my project too. I found out I had the wrong dotnet version installed, and also I was missing a package. Try to check the output and filter for the omni sharp log. This way, I found out what was missing. Hope this helps.

  • @hobbes1861
    @hobbes1861 2 роки тому

    Bless your soul dude

  • @teawa_
    @teawa_ Рік тому

    1 minute in and you've solved my issue lmao

  • @AmierAzzeal
    @AmierAzzeal 2 роки тому

    Visual sutdio code isnt any better now tried all of these but it hasnt made a difference.

  • @ssj3mohan
    @ssj3mohan 2 роки тому

    Thank you so much friend. for me i just selected visual studio 2019 , and saved and reloaded the project , after this i got a warning but 3D Unity itself made the bug fix [ i think it downloaded that package that you mentioned ]

  • @xviewmytubex
    @xviewmytubex 2 роки тому

    I opened my Unity editor for the first time last week after not doing so since 2017. I'm using the default VS 2017 Community Edition (not VS code) and trying your first example fixed my issue with Intellisense, or so I thought. It seems the C# API code now populates, but namespeaces do not. I needed to use a namespace (Using UnityEngine.InputSystem;) and it never worked. Any idea why? Thanks! =).

  • @ruxbk7695
    @ruxbk7695 2 роки тому

    it works bro. keep growing

  • @Isiborkelvin111
    @Isiborkelvin111 2 роки тому

    If you've tried everything and it still doesn't work, then double check to be sure that you began typing your code in the right syntax. Also, go to settings and under "suggestions" uncheck and recheck the relevant things.
    I hope this helps

  • @scyblox4723
    @scyblox4723 2 роки тому

    What schould I press to save I just dont get it

  • @killingtime234
    @killingtime234 9 місяців тому

    This is the only thing that help me thanks.

  • @rexistreves
    @rexistreves Рік тому

    didn't worked, what do I do?

  • @winproduction7585
    @winproduction7585 2 роки тому

    Ohhhhh, You saved my life. Thank you very much!!!!

  • @ACertainWebDeveloper
    @ACertainWebDeveloper 2 роки тому

    I changed to older version c# extension and intellisense (few moths older) and it worked perfectly

  • @mrdonnki119
    @mrdonnki119 3 роки тому

    i get a problem saying i need .NET SDK or somthing like that. then i download and do the stuff i have to do. it still gives me a pop-up saying that i need the .NET SDK or something, why is it saying this?

  • @dejo095
    @dejo095 2 роки тому

    I stopped struggling with Vscode and moved to VS, it was just to irittating with Vscode intellisense was working ocassionally

  • @T3GMedia
    @T3GMedia 2 роки тому

    After removing the Unity extension it started working. Thanks!

  • @TheThingBoi
    @TheThingBoi 3 роки тому

    well.... i have a little problem. so when 2:06 and open it said "Git installation not found." can someone help?

    • @qubodupDev
      @qubodupDev  3 роки тому

      You could install git but you don't need it
      Unless you know that you need git.