Option to generate message and auto commit changes

Right now, We have to generate message and wait for a couple seconds and then commit it. It would be nicer UX if there was an option to commit staged changes automatically after generating message

1 Like

You can use my workflow:

  • Press Ctrl + Shift + P > open keyboard shortcuts (json)
  • Add the following
{
    "key": "shift+alt+enter",
    "command": "runCommands",
    "args": {
      "commands": [
        {
          "command": "git.stageAll"
        },
        {
          "command": "cursor.generateGitCommitMessage"
        },
        // {
        //   "command": "git.commitAll"
        // },
        // {
        //   "command": "git.sync"
        // },
      ]
    }
}

This let’s me automatically:

  1. Stage all changes
  2. Generate git commit message

Optionally, uncomment the last two blocks to:

  • Commit all changes
  • Push them to remote

Let me know how it goes :victory_hand:

2 Likes