vscode: add auto increment keybindings
This commit is contained in:
parent
41d3d7d05e
commit
8b37abc240
1 changed files with 19 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue