Search Unity

  1. We are migrating the Unity Forums to Unity Discussions by the end of July. Read our announcement for more information and let us know if you have any questions.
    Dismiss Notice
  2. Dismiss Notice

Question Has anyone found a fix for vscode autocomplete/intellisense yet?

Discussion in 'Linux' started by Xeraster, Oct 9, 2022.

  1. Xeraster

    Xeraster

    Joined:
    Nov 6, 2014
    Posts:
    4
    There supposedly used to be a way to get autocomplete/intellisense working on Linux when you open unity project .cs files. You know, that thing where you can type something like "GameObject." and then see all the methods to choose from instead of just memorizing them all. VS Code and monodevelop both work on Linux and can deliver the autocomplete features but it doesn't work when you open Unity project files.

    Most articles I've found involve enabling the setting "omnisharp.UseGlobalMono" in VS Code and using VS code as the external script editor in Unity. This setting was removed from VS Code sometime in March (from what I can find). Now, there doesn't seem to be an easy-to-find way to enable an autocompletion feature using VS Code.

    I don't really mind if I have to use VS Code, monodevelop, Eclipse or some other editor but is there ANY way to get an autocomplete-like feature in Unity in Linux that works in Oct 2022?
     
  2. Xeraster

    Xeraster

    Joined:
    Nov 6, 2014
    Posts:
    4
    OK I didn't really fix my problem but if I fidget around with various settings for like 10 minutes, it will eventually start treating the "using namespace UnityEngine" as an actual reference and show "namespace UnityEngine" when I hover the cursor over that line. The normal autocompletion features I really need will work then.

    As soon as I close and reopen VS Code again, it doesn't work. If I spend another long time fidgeting with settings randomly, it will eventually start working again but if I do nothing and just wait, it won't start working on its own. It kind of sucks but at least once I get it working, if I never close it for the rest of the day it's at least usable.