如何关闭 vscode 的 rust-analyzer 插件的自动类型提示

2022/8/2 6:23:52

本文主要是介绍如何关闭 vscode 的 rust-analyzer 插件的自动类型提示,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

有两种方式解决:

第一种方式:

打开vode的设置界面搜索:

typeHintsparameterHints ,并设置为 disable

第二种方式:

直接打卡vscode的配置文件 /C:/Users/your_user_name/AppData/Roaming/Code/User/settings.json:

并添加:

"rust-analyzer.inlayHints.typeHints.enable": false, "rust-analyzer.inlayHints.parameterHints.enable": false

参考

  • https://rust-analyzer.github.io/manual.html#configuration
  • https://stackoverflow.com/questions/69909997/can-i-remove-type-annotation-help-from-rust-analyzer

谷歌关键字: rust analyzer disable type hints



这篇关于如何关闭 vscode 的 rust-analyzer 插件的自动类型提示的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!


扫一扫关注最新编程教程