geddski / macros

macros support for VS Code
MIT License
166 stars 36 forks source link

How to format and save at the same time? #30

Open kepo4ka opened 6 years ago

kepo4ka commented 6 years ago

"macros": { "formatAndSave": [ "editor.action.formatDocument", "workbench.action.files.save" ] }

{ "key": "ctrl+s", "command": "macros.formatAndSave" }

These commands (Format and Save) do not work at the same time. I need that.

When I press the first time,then the first command (Format)is triggered Only. Secontd time - second command (Save) is triggered.