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

后端 未结 7 2205
独厮守ぢ
独厮守ぢ 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 00:49

    Intellisense is a pure workflow of .Net Environment. So, you need to have .Net 'Developer pack' (not Runtime) installed on your system as it installs all three necessary components below:

    1. .Net framework
    2. .Net Target pack
    3. .net SDK

    reference link: https://dotnet.microsoft.com/download/visual-studio-sdks

    It is directly installed to a system admin-accessible path, so no need setting it up. Now, you have to tell VS Code which .Net version to use (whichever you have installed). Your Unity project will have these two files in the root directory:

    1. Assembly-CSharp.cs
    2. Assembly-CSharp-Editor.cs

    In these both files search for line (probably 16):

    v4.8
    

    Edit version that you had just installed (I had 4.8). Then reopen VS Code. Now everything should work fine.

提交回复
热议问题