本文介绍了Intellisense无法自动运行VSCode的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚下载了Visual Studio Code,但是我的Intellisense无法自动运行.

I just downloaded Visual Studio Code and my Intellisense is not automatically working.

控制此设置的两个设置似乎正确设置:

The two settings that control this seem to be set correctly:

"editor.quickSuggestions": true,
"editor.suggestOnTriggerCharacters": true,

当我开始键入并按"CTRL +空格键"时,确实会得到一个Intellisense菜单,但这会给我列出所有内容的列表,而不是我的对象专用的列表.

I do get an Intellisense menu when i start typing and press "CTRL + Space", but this gives me a list of everything and not things specifically for my object.

我在做什么错了?

推荐答案

Visual Studio Code的更高级的编辑功能(IntelliSense,重构工具等)仅在C#文件中有效,前提是您拥有 project.json 文件或 *.sln 文件.使用 *.sln 文件或项目打开文件夹(即,打开 File 菜单,然后单击 Open Folder ... ).json 和VSCode将尝试在文件夹中查找所有项目/解决方案文件.如果有多个项目,则可能需要从状态栏右侧(窗口底部)的项目按钮中选择一个.

Visual Studio Code's more advanced editing features (IntelliSense, refactoring tools, etc.) only work in C# files if you have a project.json file or *.sln file that VSCode is aware of. Open the folder (i.e. open the File menu and click Open Folder...) with the *.sln file or project.json and VSCode will attempt to find all project/solution files in the folder. If there are multiple projects, you may need to select one from the projects button on the right side of the status bar (bottom of the window).

VSCode网站:

这篇关于Intellisense无法自动运行VSCode的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-18 09:59