Set clippy as the default build task
Also configure CodeLLDB as a recommended extension.
This commit is contained in:
parent
e51f9eb4fd
commit
b94356dfb7
3 changed files with 21 additions and 6 deletions
12
.vscode/settings.json
vendored
12
.vscode/settings.json
vendored
|
|
@ -6,10 +6,18 @@
|
|||
"files.trimTrailingWhitespace": true,
|
||||
"editor.suggest.preview": true,
|
||||
"editor.acceptSuggestionOnEnter": "on",
|
||||
"rust-analyzer.checkOnSave.command": "clippy",
|
||||
"rust-analyzer.restartServerOnConfigChange": true,
|
||||
"rust-analyzer.cargo.features": "all",
|
||||
"rust-analyzer.check.overrideCommand": [
|
||||
"cargo",
|
||||
"clippy",
|
||||
"--fix",
|
||||
"--workspace",
|
||||
"--message-format=json",
|
||||
"--all-targets",
|
||||
"--allow-dirty"
|
||||
],
|
||||
"[rust]": {
|
||||
"editor.defaultFormatter": "rust-lang.rust-analyzer",
|
||||
},
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue