自动完成停止在Node.js项目上工作 [英] Auto complete stops working on Node.js projects

查看:145
本文介绍了自动完成停止在Node.js项目上工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到了一个令人讨厌的错误,当我输入字符时,intellisense没有向我显示代码完成情况。当我使用键快捷键 ctrl + space 时,intellisense将只显示代码完成。

I have encountered an annoying bug which intellisense doesn't show me code completions whenever I type characters. intellisense will only show code completions when I use the key shortcut ctrl + space.

但是当我在工作时一个不同类型的javascript项目,自动完成工作正常。

But when I am working on a different type of javascript project, auto completion works fine.

即使在以下情况下启用了语句完成,自动完成也不起作用:

Auto completion doesn't work even though statements completion is enable in:


  • 选项>文本编辑器>所有语言>自动列表成员+参数信息

  • 选项>文本编辑器> Javascript>自动列表成员+参数信息

  • 选项>文本编辑器> Node.js>自动列表成员+参数信息

我也尝试过:


  • 重新安装VS!。

  • 为vs。重新安装nodejs工具。

  • 重新启动vs。

  • 重新打开我目前正在处理的文件。

  • 处理新的Nodejs项目。

  • Reinstalling VS!.
  • Reinstalling nodejs tools for vs.
  • Restarting vs.
  • Reopening the file which I currently working on.
  • Working on a new Nodejs project.

我正在使用VS2013更新4.

I am using VS2013 update 4.

我正在使用Resharper。

I am using Resharper.

我正在使用Web Essenti als for update 4。

I am using Web Essentials for update 4.

推荐答案

在Visual Studio中:

In Visual Studio:

Click Tools->Options->Text Editor->All Languages->General
Uncheck "Auto list members"
Uncheck "Parameter information"
Check "Auto list members" (yes, the one you just unchecked)
Check "Parameter information" (again, the one you just unchecked)
Click OK

如果这不起作用,可以尝试以下几个步骤:

If this doesn't work, here's a few more steps to try:

If still not working, close all windows and reopen
If still not working, close/reopen solution
If still not working, restart VS.

(我还没弄清楚为什么在某些情况下需要采取更激烈的步骤。)

(I haven't yet figured out why more drastic steps are required in some cases.)

Tested in VS 2013
I found this to be much faster than rebooting VS

这或多或少是通过T Driver提供的链接中的说明进行的。

This is more or less stepping through the instructions in the link provided by T Driver.

记录可能的原因:

Copy/pasting controls on a page. I found that my designer.vb file didn't update from this, either.
Copy/pasting code from another page that caused an error because the code copied referred to a control that wasn't on the page I was pasting to.

(取自Tony L.的回答这里

(Taken from Tony L.'s answer here)

这篇关于自动完成停止在Node.js项目上工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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