简体   繁体   English

如何让 Visual Studio Code 重置 Rust 的 IntelliSense 引擎?

[英]How can I get Visual Studio Code to reset the IntelliSense engine for Rust?

I am working on two projects, one is a library, the other is a program that uses that library.我正在做两个项目,一个是库,另一个是使用该库的程序。 When I make changes to the library the other window (the program) doesn't see these changes, so I do not get updated IntelliSense.当我对库进行更改时,其他 window(程序)看不到这些更改,因此我没有获得更新的 IntelliSense。 Closing the program that uses the library and reopening it does force an update but I really prefer not having to go that far.关闭使用该库的程序并重新打开它确实会强制更新,但我真的不希望 go 走那么远。

Answering the title directly and not the root issue...直接回答标题而不是根本问题...

You can reset IntelliSense and all Rust code features by running the "Rust: Restart the Rust server" command from the command palette (Ctrl+Shift+P).您可以通过从命令面板 (Ctrl+Shift+P) 运行“Rust: Restart the Rust server”命令来重置 IntelliSense 和所有 Rust 代码功能。

在此处输入图像描述

Progress will be indicated in the status bar.进度将显示在状态栏中。

Still a blunt tool but it will ensure you're in a fresh state without having to restart VS Code entirely.仍然是一个生硬的工具,但它可以确保您处于全新的 state 中,而无需完全重新启动 VS Code。

暂无
暂无

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

相关问题 如何在 Visual Studio 代码上修复智能感知? - How can i fix intelliSense on visual studio code? 如何获得相对路径的 Visual Studio 智能感知 - How can I get Visual Studio intellisense for the relative path 我怎样才能摆脱烦人的“import pdb; pdb.set_trace()”关于 Visual Studio Code Intellisense 的自动完成建议 - How can I get rid of annoying “import pdb; pdb.set_trace()” autocomplete suggestion on Visual Studio Code Intellisense Visual Studio Code Intellisense 非常慢——有什么我可以做的吗? - Visual Studio Code Intellisense is very slow - Is there anything I can do? JavaScript Intellisense与Visual Studio代码:如何让它适用于所需的模块? - JavaScript Intellisense with Visual Studio Code: How to get it to work for required modules? 如何在 Visual Studio Code 中为 Unity 函数名称获取智能感知? - How to get intellisense in Visual Studio Code for Unity functions names? 如何在 Visual Studio (VS) 代码上获得 Intellisense 以在 Python 上工作 - How to get Intellisense on Visual Studio (VS) Code to work on Python 如何让 C# Dotnet Intellisense 在 Ubuntu 上使用 Visual Studio Code - How do I get C# Dotnet Intellisense to work on Visual Studio Code on Ubuntu 如何摆脱 Visual Studio Code 中的一个智能感知警告 - How do I get rid of one intellisense warning in Visual Studio Code 如何清除Visual Studio Code的TypeScript智能感知缓存? - How can Visual Studio Code's intellisense cache for TypeScript be cleared?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM