-
-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rust: with Clion/IntelliJ IDEA Community/Vscode #390
Comments
Rust 开发环境搭建:
安装 IntelliJ IDEA Community 社区版 + intellij-rust 插件,
然后 action 开启 `org.rust.cargo.evaluate.build.scripts` 选项。
也是支持宏代码跳转的。亲测有效。依然比 vscode + ra 强大。 使用 rustup 安装 rust:curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
➤ rustup show
Default host: aarch64-apple-darwin
rustup home: /Users/dev/.rustup
installed toolchains
--------------------
stable-aarch64-apple-darwin
nightly-2022-07-31-aarch64-apple-darwin
nightly-aarch64-apple-darwin (default)
1.61.0-aarch64-apple-darwin
active toolchain
----------------
nightly-aarch64-apple-darwin (default)
rustc 1.63.0-nightly (12cd71f4d 2022-06-01)
➤ cargo version
cargo 1.63.0-nightly (38472bc19 2022-05-31)
验证 IDE 宏补全 - 示例项目:Rust LSP - rust-analyzer: for Vscode
intellij-rust 代码补全 - 核心设置: for Clion
org.rust.cargo.evaluate.build.scripts = true |
Rust 配置 Clion 开发环境:
基本设置:
项目主动激活索引:
激活宏生成的代码补全:
org.rust.cargo.evaluate.build.scripts
|
Rust 配置 Vscode:插件配置:rust-analyzer:
|
clion 的宏补全能力: |
Clion index 炸机修复:# clion功能不行的时候,用这个命令:
cargo metadata --verbose --format-version 1 --all-features |
1 |
1 similar comment
1 |
hhstore
changed the title
Rust: with Clion/Vscode
Rust: with Clion/IntelliJ IDEA Community/Vscode
Sep 21, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
related:
The text was updated successfully, but these errors were encountered: