vscode-docs icon indicating copy to clipboard operation
vscode-docs copied to clipboard

Document `editor.codeActionsOnSave`

Open brettcannon opened this issue 2 years ago • 2 comments

The docs only seem to reference it in the default settings. Otherwise I always have to refer to https://code.visualstudio.com/updates/v1_57#_sort-imports-source-action on how to use it (and I don't know all the possible values it could contain).

brettcannon avatar Apr 04 '22 19:04 brettcannon

@brettcannon I believe editor.codeActionsOnSave has multiple settings.

From https://github.com/microsoft/vscode-docs/blob/ad85eb71a0d989be6d288d2d36ce2fb131db0ad9/release-notes/v1_23.md#run-code-actions-on-save

There might be different settings and it can be documented for sure.

codewithdev avatar May 15 '22 14:05 codewithdev

+1 for better documentation around this. The format has changed since this ticket was opened, and it no longer accepts boolean values and can be either and array or an object: https://github.com/microsoft/vscode/issues/194861

Vscode release notes are currently the best place to find info on this option. I'm especially curious around what the valid commands are that can be used with this option.

jeremy-allocate avatar Apr 12 '24 22:04 jeremy-allocate