When working on a merge/pull request and want your Git commit history to look nice afterwards, you often need to rename commit messages. For larger merge/pull requests you might need to rename a bunch of them.
The git rebase interactive reword command comes close, but it only allows you to change commit messages one by one in sequence, instead of changing the messages in an editor in one go.
Below is the most practical way of rewriting the commit messages I have found. It uses git interactive rebase, vscode and multiple cursors.
Note that the method below doesn't work for multiline commit messages!