【问题标题】:Auto complete stops working on Node.js projects自动完成停止在 Node.js 项目上工作
【发布时间】:2015-08-04 09:06:18
【问题描述】:

我遇到了一个烦人的错误,每当我键入字符时,智能感知都不会显示代码完成。当我使用快捷键ctrl + space 时,智能感知只会显示代码完成。

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

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

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

我也试过了:

  • 正在重新安装 VS!。
  • 为 vs. 重新安装 nodejs 工具
  • 重启与
  • 重新打开我目前正在处理的文件。
  • 正在处理一个新的 Nodejs 项目。

我正在使用 VS2013 更新 4。

我正在使用 Resharper。

我正在使用 Web Essentials 进行更新 4。

【问题讨论】:

    标签: javascript node.js visual-studio visual-studio-2013 intellisense


    【解决方案1】:

    在 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 still not working, close all windows and reopen
    If still not working, close/reopen solution
    If still not working, restart VS.
    

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

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

    这或多或少是通过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. 的回答 here)

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-01-03
      • 1970-01-01
      • 1970-01-01
      • 2012-08-19
      • 1970-01-01
      • 2012-10-07
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多