如何在 VS Code 中重置智能感知? [英] How to reset intellisense in VS Code?
本文介绍了如何在 VS Code 中重置智能感知?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如果您在 VsCode 调试时更改代码,智能感知有时会出现错误编译错误.重置或纠正它的最快方法?
If you make a code change while VsCode is debugging, the intellisense sometimes appears to malfunction with false compile errors. Fastest way to reset or correct it?
推荐答案
重启 TypeScript 语言服务
在 VS Code 和 TypeScript 源文件中(这不适用于 css 或 json 文件),
Restart the TypeScript language service
In VS Code, and in a TypeScript source file (this won't work in a css or json file),
- 打开命令面板 (查看菜单 → 命令面板)
- 输入
TypeScript:重启 TS 服务器.
(输入重启",它应该自动提示)
这篇关于如何在 VS Code 中重置智能感知?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文