dotfiles/home/modules/vscode/config/keybindings.nix
2024-12-24 17:19:44 -06:00

29 lines
773 B
Nix
Executable file

{
keybindings = [
{
key = "ctrl+shift+s";
command = "editor.action.insertCursorAtEndOfEachLineSelected";
when = "textInputFocus";
}
{
key = "ctrl+shift+a";
command = "editor.action.quickFix";
when = "editorHasCodeActionsProvider && textInputFocus && !editorReadonly";
}
{
key = "ctrl+shift+f";
command = "editor.action.formatDocument";
when = "editorHasDocumentFormattingProvider && editorTextFocus && !editorReadonly && !inCompositeEditor";
}
{
key = "ctrl+shift+tab";
command = "editor.action.indentationToSpaces";
when = "textInputFocus";
}
{
key = "ctrl+shift+d";
command = "editor.action.deleteLines";
when = "textInputFocus";
}
];
}