skip to Main Content

While I was coding a script for a game object in unity, I noticed the absence of autocomplete that appear while coding.

For instance : gameObject.[list of possible commands]

Visual Studio Code will still suggest me commands while coding normal C#, or Python. But when I want to use commands which are used to change something which concerns anything inside unity (For example : the name of the gameObject, or the velocity of the gameObject), no options will appear. This issue does not occur in Visual Studio ONLY in VS Code.

This is what I see : enter image description here

As you can see no dropdown of suggestions/options.

PS: I have set the external script editor in unity to VS Code.
PS 2 : I am not using VS Code in Restricted Mode.
PS 3: I have restarted Unity and it still didn’t fix the problem.

How can I fix that and make the dropdown list appear ?

2

Answers


  1. Chosen as BEST ANSWER

    OK, I found a solution to my problem. Just go to VS Code Extensions and download the "C# Extension pack". Now autocomplete works.


  2. Here is a solution. Installing the .NET Extension Pack has the autocomplete working fine and as expected.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search