File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ you can write: <!-- date: 2021-09 --><!-- the date comment is for the edition be
3232 " --json-output"
3333 ],
3434 "rust-analyzer.rustfmt.overrideCommand" : [
35- " ./build/TARGET_TRIPLE/stage0/bin/rustfmt" ,
35+ " ./build/$ TARGET_TRIPLE/stage0/bin/rustfmt" ,
3636 " --edition=2021"
3737 ],
3838 "editor.formatOnSave" : true ,
@@ -45,6 +45,11 @@ you can write: <!-- date: 2021-09 --><!-- the date comment is for the edition be
4545in your ` .vscode/settings.json ` file. This will ask ` rust-analyzer ` to use
4646` x.py check ` to check the sources, and the stage 0 rustfmt to format them.
4747
48+ > NOTE: Make sure to replace ` TARGET_TRIPLE ` in the ` rust-analyzer.rustfmt.overrideCommand `
49+ > setting with the appropriate target triple for your machine. An example of such
50+ > a triple is ` x86_64-unknown-linux-gnu ` . An easy way to check your target triple
51+ > is to run ` rustc -vV ` and checking the ` host ` value of its output.
52+
4853If you're running ` coc.nvim ` , you can use ` :CocLocalConfig ` to create a
4954` .vim/coc-settings.json ` and enter the same settings as above, but replacing
5055` editor.formatOnSave: true, ` with
You can’t perform that action at this time.
0 commit comments