官术网_书友最值得收藏!

Installing Visual Studio Code and extensions

In its vanilla version, Visual Studio Code comes with syntax highlighting for many languages. However, for autocompletion or/and checking syntax, an extension is required. The Rust project supplies this extension:

  1. Open Visual Studio Code.
  2. Use Ctrl + P (cmd + P on macOS) to open the command-line interface, then type ext install rust-lang.rust to install the extension. The process should look like this:

The extension uses RLS to do static code analysis and provide completion and syntax checking. The extension should install the RLS component automatically, but sometimes it will fail to do this. One solution is to add the following configuration to Visual Studio Code's settings.json file (use Ctrl + P/cmd + P to find it):

{
"rust-client.channel":"stable"
}

Alternatively, rustup will also install RLS with the rustup component add rls command.

主站蜘蛛池模板: 工布江达县| 乌鲁木齐县| 东乡| 喜德县| 随州市| 南阳市| 武穴市| 广丰县| 慈溪市| 山西省| 武功县| 中宁县| 郑州市| 安康市| 荥经县| 宜春市| 博湖县| 揭阳市| 互助| 合水县| 河南省| 天全县| 石楼县| 云阳县| 山阴县| 桐城市| 柳江县| 藁城市| 肇庆市| 镇康县| 乌兰察布市| 苍溪县| 阿拉善盟| 南靖县| 山丹县| 兴隆县| 黔西| 七台河市| 河曲县| 固阳县| 罗城|