Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual studio code auto-complete

I have just downloaded unity and saw that now it supports Visual studio code, I downloaded it and made it the default editor.

After trying to edit a script, it prompted me to download c# extension and I did, but there is no auto-complete for unity functions. How can I get that? I'm on Mac. Any help is appreciated.

like image 520
Abdou023 Avatar asked Dec 05 '16 21:12

Abdou023


People also ask

How do I autocomplete code in Visual Studio?

You can trigger IntelliSense in any editor window by typing Ctrl+Space or by typing a trigger character (such as the dot character (.) in JavaScript).

Does VS Code have auto complete?

You can also customize the general behavior of autocomplete and IntelliSense, even to disable these VS Code features entirely.

Why Autocomplete is not working in VS Code?

Why is VS Code suggestions not working? If you're coding in JavaScript or TypeScript and finds that VSCode IntelliSense does work but does not behave properly, it's likely that you've selected the wrong language mode. TypeScript and JavaScript share the same language service, so you need to select the right language.


2 Answers

Maybe too late, but for future comers ...

There is an extension now for visual studio code called MonoBehaviour Snippets by Rachod Petchpho.

Press Ctrl+shift+x in the IDE to open extensions panel then search for MonoBehaviour Snippets, install and reload the IDE, now you will find all the autocomplete for the function names and objects just like MonoDevelop.

like image 194
Amr Saber Avatar answered Oct 03 '22 13:10

Amr Saber


I had the same situation and I bang my head to the wall for days. There was no solution on the net as there are few people using Unity on linux with Visual Studio Code. I finally removed mono and went to their site and downloaded the Visual Studio build (even though we use Visual Studio Code). Then volaaa. Auto complete and suggestions related to Unity functions were there. Of course after installing the necessary extensions.

https://www.mono-project.com/download/vs/

like image 38
Aykut Karaca Avatar answered Oct 03 '22 15:10

Aykut Karaca