gpt4 book ai didi

javascript - 自动完成停止在 Node.js 项目上工作

转载 作者:行者123 更新时间:2023-11-30 00:28:47 24 4
gpt4 key购买 nike

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

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

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

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

我也试过:

  • 正在重新安装 VS!
  • 为 vs. 重新安装 nodejs 工具
  • 重启对比
  • 重新打开我当前正在处理的文件。
  • 从事新的 Nodejs 项目。

我正在使用 VS2013 更新 4。

我正在使用 Resharper。

我正在使用 Web Essentials 更新 4。

最佳答案

在 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 )

关于javascript - 自动完成停止在 Node.js 项目上工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30395053/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com