Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Code Completion in 2018.2

Discussion in 'Linux' started by GregoryFenn, Aug 25, 2018.

  1. GregoryFenn

    GregoryFenn

    Joined:
    Feb 13, 2018
    Posts:
    43
    Is anyone else unable to run VS Code for Unity and get all the code intellisense working? It's horrible not having all the members of (eg) Rigidbody or SpriteRenderer come-up as recommendations. I tried uninstalling all the mono stuff but it didn't help. (MonoDevelop sometimes works, but you have to manually search for an open each C# file like the app doesn't recognize the whole project, even if I open the .SLN file).
     
  2. spacepluk

    spacepluk

    Joined:
    Aug 26, 2015
    Posts:
    243
    Make sure you install the C# and Unity plugins in VSCode, and then you need to get Unity to generate the project files for you.

    For that to happen make sure you set the external editor to use the "code" executable. If your distro uses a different name for VSCode executale just create a symlink. When you have the project files generated open the project folder in VSCode and everything should work.
     
    GregoryFenn likes this.