不灭的焱

革命尚未成功,同志仍须努力 Trae下载

作者:AlbertWen  添加时间:2026-08-17 15:57:54  修改时间:2026-08-23 23:14:48  分类:01.Rust编程  编辑

目录

以Window为例

第1步:下载server端运行程序

  • Windows上安装的版本rust-analyzer-x86_64-pc-windows-msvc.zip
  • Mac Apple芯片的版本rust-analyzer-aarch64-apple-darwin.gz

GitHub下载地址:https://github.com/rust-lang/rust-analyzer/releases

第2步:配置settings.json文件

(1).把解压后的文件 rust-analyzer.exe 放到某个文件夹下,如:D:\AlbertWen\.cargo\bin\

Mac下,注意设置可执行权限:

chmod +x /Users/albertwen/.cargo/bin/rust-analyzer-aarch64-apple-darwin 

(2).配置settings.json

 "rust-analyzer.server.path": "D:\\AlbertWen\\.cargo\\bin\\rust-analyzer.exe"

第3步:安装VSCode的 rust-analyzer插件

第4步:重启VSCode