简体   繁体   English

突然丢失的Visual Studio打字稿Intellisense

[英]Suddenly Lost Visual Studio Typescript Intellisense

I am using visual studio community 2015 writing typescript in a MVC 6 application. 我正在使用Visual Studio Community 2015在MVC 6应用程序中编写打字稿。 Everything was working fine last time, when I opened the solution today typescript lost its intellisense, When I compile using gulp it compiles, but visual studio doesn't want to see anything. 上次一切正常,当我今天打开解决方案时,打字稿失去了智能感知,当我使用gulp进行编译时,它可以编译,但是visual studio不想看到任何东西。 when I add the "reference directive" on the top of the files the intellisense work, but visual studio still cannot understand html in react tsx files and highlight the tags with red lines which if you hover on them you see "React is not found"! 当我在文件顶部添加“引用指令”以进行智能操作时,Visual Studio仍然无法理解react tsx文件中的html并用红线突出显示标签,如果将鼠标悬停在标签上,则会看到“未找到反应” ! I wonder what happened suddenly!! 我不知道突然发生了什么! I didn't change anything I was just writing ts and tsx files. 我只写ts和tsx文件并没有做任何更改。

This happened with me most of the time. 大部分时间我都这样。 I do these steps when VSCode intellisense doesn't work in my mac:- 当VSCode intellisense在我的Mac中不起作用时,我执行以下步骤:

1) Command+shift P for opening commandPallete. 1)Command + shift P,用于打开commandPallete。

2) Search for Reload Window. 2)搜索重新加载窗口。

Try Reset all settings it will start working:- 尝试重置所有设置,它将开始工作:-

Tools -> Import and Export Settings -> Reset all settings 工具->导入和导出设置->重置所有设置

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM