geddski / geddski/macros

How to format and save at the same time?

Open
#30 0 comments 2 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
177
Forks
36
PR merge metrics
No merged PRs in 30d

Description

`"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.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the shown macros.formatAndSave configuration in VS Code and inspect the macro command entry point in this repository. Confirm how editor.action.formatDocument and workbench.action.files.save are dispatched; done means one Ctrl+S runs both commands in sequence.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, vscode
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.