A Unity ID allows you to buy and/or subscribe to Unity products and services, shop in the Asset Store and participate
in the Unity community.
Separate names with a comma.
Discussion in 'Code Editors & IDEs' started by DavidG_Fenex, Feb 27, 2020.
A mi me decía que necesitaba el NET Framework 4.7.1, lo descargue, volví a recargar y me funciono
Thanks man <3
Thanks a lot!!!
It' s work thank you so much
Thank you very much! You saved my week!
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!
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.
This also fixed the missing 'Attach to Unity' and 'Unity Project Explorer' features mentioned in the MS docs https://docs.microsoft.com/en-us/vi...-visual-studio-tools-for-unity?pivots=windows
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
Thank you so much, fixed it for me
Worked for me thanks
omg I love you!!! It worked!
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".
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!!!
I love you
This worked for me. Thank you very much.
It worked! Thanks A lot
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
It worked, thank you!
thank you this worked for me
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.
I'm on mac, tried everything, well except one. I just restarted my device, and that seems to have solved it for me.
Wow, it Worked! Thank you so much!
I just want to say thanks and it worked.
I have been struggling with this for years now thank you!
worked like a charm! thanks
This worked! Thank you.
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!
I didn't find any "Editor Attaching" but this worked with unity 2022 and VS 2022.
Thank You <3
Thanks! This helped.
It worked as you stated. Thank you!!
super thanks to you bro
thank you so so so so soooooooo much
Many thanks, it worked for me, a newbie. I wonder why unity doesn't set it as default?
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
What do you ean with Editor Attaching pal?
Thank you sir!
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!
You saved my time. Thank you.
Worked like a charm! Thanks!
Big thank you for this!
Still working. Thank you for your efforts.
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
Thanks. Works with 2019 VS Enterprise. It was driving me mad!
This did it for me. Thanks!!!