gpt4 book ai didi

intellij-idea - 如何让 Rust IntelliJ IDEA 插件显示自动完成建议?

转载 作者:行者123 更新时间:2023-11-29 08:16:27 25 4
gpt4 key购买 nike

我使用 IntelliJ IDEA 在 Rust 中进行开发,但是在安装 Rust plugin 之后,代码自动完成功能不起作用:

enter image description here

我希望IntelliJ IDEA能给我一个String的提示,但我还是需要自己写。我错过了什么吗?

最佳答案

mkaput 赋予权利 answer :

You have created a project in a directory which is not a Cargo project (you have two separate ones inside instead). Our requirement for almost any feature is that IntelliJ project root (~/rust in your situation) is also Cargo project/workspace root (it has Cargo.toml). Thanks to this we can firmly invoke cargo to get all information we need.

tl;dr make separate projects inside each: hello_cargo and guessing_game :-)

关于intellij-idea - 如何让 Rust IntelliJ IDEA 插件显示自动完成建议?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42684786/

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