vscode: add auto increment keybindings

This commit is contained in:
Kim, Jimin 2025-06-07 13:47:09 +09:00
parent 41d3d7d05e
commit 8b37abc240
Signed by: pomp
GPG key ID: D3932F82A0667A3B

View file

@ -69,6 +69,7 @@
};
keybindings = [
# git
{
key = "ctrl+alt+s";
command = "git.stageSelectedRanges";
@ -84,6 +85,24 @@
command = "git.revertSelectedRanges";
when = "editorTextFocus && !operationInProgress && resourceScheme == 'file'";
}
# snippet
{
key = "alt+i";
command = "editor.action.insertSnippet";
args = {
"snippet" = "$CURSOR_INDEX";
};
when = "editorTextFocus && editorHasMultipleSelections";
}
{
key = "alt+n";
command = "editor.action.insertSnippet";
args = {
"snippet" = "$CURSOR_NUMBER";
};
when = "editorTextFocus && editorHasMultipleSelections";
}
];
enableExtensionUpdateCheck = false;