Visual Studio Code IntelliSense建议不会自动弹出 [英] Visual Studio Code IntelliSense suggestions don't pop up automatically
问题描述
我按照,VSCode确实支持C#IntelliSense。
I不要以为是错误,也许我在安装VSCode时做错了。
OmniSharp不知道您的项目文件在哪里。在屏幕快照中,左侧边栏显示您尚未打开文件夹。 OmniSharp将在您当前打开的文件夹中查找项目文件。
- 添加文件夹。文件>打开文件夹...
- 确保您具有项目文件(project.json或* .csproj文件)。
OmniSharp应该足以为您提供Intellisense。
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 it by using shortcut Command+Space
, meanwhile, the suggestions are just from the code I wrote.
Here is the screen capture below:
I checked in https://code.visualstudio.com/Docs/editingevolved, VSCode do support C# IntelliSense.
I don't think it is bug, maybe I did something wrong when installing VSCode. How to solve this problem?
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.
- Add your folder. File > Open Folder...
- 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.
这篇关于Visual Studio Code IntelliSense建议不会自动弹出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!