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

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.

主站蜘蛛池模板: 五峰| 清水河县| 封开县| 孝昌县| 洞头县| 布尔津县| 大荔县| 东明县| 阳高县| 徐汇区| 汾西县| 惠东县| 江华| 怀宁县| 津市市| 丰城市| 宣威市| 旌德县| 渝中区| 秀山| 墨竹工卡县| 道孚县| 邮箱| 台安县| 文成县| 乐平市| 宁南县| 萨嘎县| 营口市| 乌拉特前旗| 余姚市| 调兵山市| 台南市| 柳林县| 甘孜| 乐亭县| 泸西县| 康乐县| 德钦县| 固始县| 益阳市|