visual studio code – How to have function argument indenting?

The intended way to format R code in Positron is via Air, a new formatter for R. Air comes with Positron (actually, it’s bundled inside an extension that comes with Positron). The recommended way to opt in to “format my code with Air every time I save” is to put this in your user-level settings:

{
    "[r]": {
        "editor.formatOnSave": true,
        "editor.defaultFormatter": "Posit.air-vscode"
    },
    "[quarto]": {
        "editor.formatOnSave": true,
        "editor.defaultFormatter": "quarto.quarto"
    }
}

You can read more here:

Read more here: Source link