79180049

Date: 2024-11-12 06:52:45
Score: 0.5
Natty:
Report link

I have added an extra option rust-analyzer.rustfmt.extraArgs to my settings.json file:

{
  "[rust]": {
    "editor.inlayHints.enabled": "offUnlessPressed",
    "editor.defaultFormatter": "rust-lang.rust-analyzer",
    "editor.formatOnSave": true
  },
  "rust-analyzer.rustfmt.extraArgs": ["+nightly"]
}

Now it works as I expect it - file saving applies formatting according with style_edition, imports_granularity, group_imports and other nightly options from a rustfmt.toml.

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: muturgan