DEV Community

Discussion on: Easily sort imports and remove unused declarations on each save in VS Code

Collapse
 
laxedo17 profile image
laxcivo

tested already. Works like a charm! Only thing I'd need is to configure it for all files (.cs .fs), and I found this easy way following the post you linked to! (changed the .cs or .fs whatever, to simply a .* )

"runOnSave.commands": [
    {
        "match": ".*",
        "command": "editor.action.formatDocument",
        "runIn": "vscode"
    }
Enter fullscreen mode Exit fullscreen mode