vscode-commit-message-editor
vscode-commit-message-editor copied to clipboard
Support for indentation of a whole multiline text
I usually structure my message-body something like this:
* __What was the Problem?__:
* problem 1
* problem 2
* problem 2.1
* problem 3
* __What changed?__:
* change 1
* change 2
* change 2.1
* change 3
so i defined 2 multilines (with the workaround mentioned in https://github.com/bendera/vscode-commit-message-editor/issues/52):
{
"label": "Problem",
"name": "problem",
"type": "text",
"prefix": "* __What was the Problem?__\n",
"suffix": "\n",
"multiline": true,
"lines": 10
},
{
"label": "Changes",
"name": "changes",
"type": "text",
"prefix": " * __What changed?__ \n",
"suffix": "\n",
"multiline": true,
"lines": 10
},
The only issue i have is that i have to manually indent every line. Current input in to the "Problem field":
* problem 1
* problem 2
* problem 2.1
* problem 3
An "indent"-option for multilines would be nice: so if i set "indent": 2 every line is shifted in by two spaces so i can input this into the "Problem field":
* problem 1
* problem 2
* problem 2.1
* problem 3
That's a valid use case which I didn't expect. I'll figure out something.