VS Code: how to set up RA so that check is only run on specific trigger, rather than "on save" in general?

I would like to keep autosave on in VS Code.

I would like to turn off rust-analyzer automatically running check on any save.

Is there a nice way to do this? The best I have been able to come up with is a custom keybinding, as follows:

        "key": "ctrl+s",
        "command": "runCommands",
        "args": {
            "commands": [

Are there any cleaner/more robust solutions?

Seems like flycheck is the thing that's happening, so you can just do rust-analyzer.runFlycheck.

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.