突然失去Visual Studio Typescript Intellisense

Suddenly Lost Visual Studio Typescript Intellisense

本文关键字:Typescript Intellisense Studio Visual 失去 突然      更新时间:2023-09-26

我使用visualstudio community 2015在MVC 6应用程序中编写typescript。上次一切都很好,当我今天打开解决方案时,typescript失去了它的智能,当我使用gull编译时,它会编译,但visualstudio什么都不想看到。当我在文件顶部添加"引用指令"时,intellisense可以工作,但visualstudio仍然无法理解react tsx文件中的html,并用红线突出显示标记,如果你将鼠标悬停在它们上,你会看到"react未找到"!我想知道突然发生了什么!!我没有改变任何东西,我只是在写ts和tsx文件。

尝试重置所有设置,它将开始工作:-

工具->导入和导出设置->重置所有设置

这种情况大多数时候都发生在我身上。当VSCode intellisense在我的mac中不起作用时,我会执行以下步骤:-

1) 命令+移位p打开命令Pallete。

2) 搜索"重新加载窗口"。