How to get intellisense in Visual Studio Code for Unity functions names?

后端 未结 7 2202
独厮守ぢ
独厮守ぢ 2020-12-07 00:30

I am following a tutorial about Unity and I see that the instructor has intellisense when writes the method\'s name.

However I have only intellisense with classes an

7条回答
  •  隐瞒了意图╮
    2020-12-07 01:07

    Although the answer by Alex Myers is helps, its not 100% right. Unity Snippets does give you some snippets, and the illusion of typeahead, it's not actually intellisense.

    For true intellisense you need to:

    • install dotnet on your system (https://code.visualstudio.com/docs/languages/dotnet) and,
    • install the dotnet extension for VSCode (https://marketplace.visualstudio.com/items?itemName=ms-vscode.csharp)

    More information can be found here: https://code.visualstudio.com/docs/languages/dotnet

    You can test you have dotnet installed by typing dotnet into the terminal within VSCode.

    Note In the image below how I get a full method signature, reference counts, and the yellow hint globe. These are only available when using dotnet + extension (and not available when using the snippets)

提交回复
热议问题