Visual Studio Express 2015(C#)中的Intellisense损坏 [英] Intellisense is broken in Visual Studio Express 2015 (C#)

查看:75
本文介绍了Visual Studio Express 2015(C#)中的Intellisense损坏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

通常,我应该可以使用ctrl + space来打开它,但是它不再起作用.同样,当将光标放在未完成的成员(例如" string.Emp ")上时,按Ctrl +空格键将不再使单词完整.

Normally I should be able to open it with ctrl+space but that no longer works. Also when placing the cursor on a half finished member (e.g. "string.Emp") ctrl + space does no longer complete the word.

在选项声明完成"中, >自动列出成员"和参数信息"以及完成列表" >选中键入字符后显示完成列表",我什至 取消选中它们,保存选项,然后再次选中它们,但这没什么区别.

In the options "Statement Completion" >"Auto list members" and "Parameter  information" as well as "Completion Lists" > "Show completion list after a character is typed"are all checked and I even unchecked them, saved options and then checked them again but it made no difference.

我最近安装了Visual Studio Express 2015,并且未添加任何扩展名.

I have installed Visual Studio Express 2015 recently and added no extensions.

是否可以解决Intellisense?

Is there a way to fix Intellisense?

推荐答案

lshiirou,

欢迎访问MSDN论坛.

您的VS Express 2015版本是什么?我尝试为Windows 10安装VS express 2015,并创建一个新的C#项目,然后键入示例字符"string.emp",然后单击Ctrl + Space, 它会自动用string.Empty完成单词.

What’s your VS express 2015 version? I tried to install the VS express 2015 for windows 10 and create a new C# project and type the example characters "string.emp" and click Ctrl+Space, it auto complete word with string.Empty.

请查看以下步骤来解决此问题:

  1. 输入示例字符"string.emp",然后按Tab或Space键,如果两者都可以完成单词,则看来关键字Ctrl + Space无效,请转到工具-环境-关键字,然后检查Edit.CompleteWord的关键字 被定义为Ctrl + Space.如果按Tab键可以补全单词,但按Space键则不能补全单词,请检查智能提示是否处于建议"模式下,如以下屏幕截图所示.在建议"模式下,完整单词"仅在以下情况下插入选定的关键字: 按下Tab键,因此您无法使用Ctrl +空格键来完成单词.有关此信息,请检查 完整的单词.
  1. Type the example characters "string.emp" and press Tab or Space key, if both can complete word, it looks like the keyword Ctrl+Space not work, please go to Tools-Environment-Keyword and check the keyword of Edit.CompleteWord is defined as Ctrl+Space. If press Tab key can complet word, but press Space key cannot, please check if the intellisense is under Suggestion mode like the following screenshot. In Suggestion mode, Complete Word will insert the selected keyword only when the Tab key is pressed, so you cannot use Ctrl+Space to complete word. For this information, please check Complete Word.

  1. 如果以上3个关键字无法完成单词,请转到工具"->选项"->文本编辑器"->所有语言"->常规",然后取消选中自动列表"成员"和参数信息"保存.然后重新打开工具"->选项"->文本" 编辑->所有语言->常规,再次检查这2个选项并保存.重新打开VS并再次检查此问题.
  2. 如果已全部检查,请执行以下命令以排除VS本身的问题:
    • 工具-导入和导出设置…,然后选择重置所有设置",然后保存您的当前设置,然后单击完成"按钮将自定义设置重置为默认设置,它可以帮助我们排除自定义设置 导致此问题.
    • 打开VS express 2015安装位置,通常位于C:\ Program Files(x86)\ Microsoft Visual Studio 14.0 \ Common7 \ IDE并运行以下命令,然后重新打开VS并检查此问题
  1. If the above 3 keywords cannot complete word, go to Tools->Options->Text Editor->All Languages->General, uncheck "Auto list members" and "Parameter information" save it. Then reopen Tools->Options->Text Editor->All Languages->General, check these 2 options again and save. Reopen VS and check this issue again.
  2. If they all already checked, please perform the following commands to excludes the VS itself issues:
    • Tools-Import and Export Settings… and select ‘Reset all settings’, then save your current settings, then click ‘Finish’ button to reset the customized setting to the default, it can help us to excludes the customized setting caused this issue.
    • Open the VS express 2015 installation location, usually locates C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE and run the following commands, then reopen VS and check this issue 

          VSWinExpress/resetuserdata:清除旧的用户数据

          VSWinExpress/safemode:以安全的方式运行VS,如果可以正常运行,则意味着已安装的扩展程序可能已损坏VS,请转到工具-扩展程序和更新…,然后

           VSWinExpress /safemode: run the VS as safe, if it works fine that means the installed extensions may be corrupted the VS, please go to Tool—Extensions and Updates… and remove all installed extensions one by one to find the culprit.

最好的问候,

萨拉


这篇关于Visual Studio Express 2015(C#)中的Intellisense损坏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆