Visual Studio Code IntelliSense suggestions don't pop up automatically

后端 未结 5 1232
一生所求
一生所求 2020-12-10 10:12

I followed the install instructions in https://code.visualstudio.com, but when I write C# code, the IntelliSense suggestions don\'t pop up automatically, so I must trigger i

5条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-10 10:54

    OmniSharp doesn't know where your project files are. In your screenshot, the left sidebar says "You have not opened a folder". OmniSharp will look in your currently opened folder for project files.

    1. Add your folder. File > Open Folder...
    2. Make sure you have a project file (either project.json or your *.csproj files).

    This should be enough for OmniSharp to start providing you Intellisense.

提交回复
热议问题