gpt4 book ai didi

javascript - 突然丢失 Visual Studio Typescript Intellisense

转载 作者:搜寻专家 更新时间:2023-10-30 22:02:16 24 4
gpt4 key购买 nike

我正在使用 visual studio community 2015 在 MVC 6 应用程序中编写 typescript 。上次一切正常,当我今天打开解决方案时,typescript 失去了它的智能感知,当我使用 gulp 编译时它编译,但 visual studio 不想看到任何东西。当我在文件顶部添加“引用指令”时,智能感知工作,但 visual studio 仍然无法理解 react tsx 文件中的 html 并用红线突出显示标签,如果将鼠标悬停在它们上面,你会看到“React is not found” !我想知道突然发生了什么!!我没有更改任何东西,我只是在编写 ts 和 tsx 文件。

最佳答案

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

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

关于javascript - 突然丢失 Visual Studio Typescript Intellisense,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37085257/

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