VS code 的 rust 开发环境配置

本人在 VS code 环境中进行 rust 学习的编辑器配置。

插件

单词拼写检查

  • Code Spell Checker

Debug工具

  • CodeLLDB

行内错误提示

  • Error Lens

TOML文件支持,智能提示、格式化

  • Even Better TOML

字体

image

配置

  • 打开 VS code 的 seating.json 文件,按需填入以下配置即可。
{
    "editor.fontFamily": "Fira Code, monospace", //字体
    "editor.fontLigatures": true, //连字
    "editor.formatOnSave": true, //保存时格式化
    "editor.formatOnType": true, //输入一行后格式化
    "editor.formatOnPaste": true, //粘贴后格式化
    "[rust]": {
        "editor.defaultFormatter": "rust-lang.rust-analyzer", //默认格式化工具
     },
}

代理配置

看基金、股票价格

  • 韭菜盒子

主题

  • Bluloco Light Theme

image

图标

  • Material Icon Theme

image

色块括号

  • indent-rainbow

很好用的一个插件,特别是涉及到多个括号嵌套的场景时。

image

posted @ 2023-01-31 16:37  贤云曳贺  阅读(166)  评论(0编辑  收藏  举报