diff --git a/dot_config/private_Code - OSS/User/keybindings.json b/dot_config/private_Code - OSS/User/keybindings.json new file mode 100644 index 0000000..e85b388 --- /dev/null +++ b/dot_config/private_Code - OSS/User/keybindings.json @@ -0,0 +1,30 @@ +// Place your key bindings in this file to override the defaults +[ + // Disable Find in Files using Ctrl+Shift+F + { + "key": "ctrl+shift+f", + "command": "-workbench.action.findInFiles" + }, + + // Format Code: ctrl+shift+f + { + "key": "ctrl+shift+f", + "command": "notebook.formatCell", + "when": "editorHasDocumentFormattingProvider && editorTextFocus && inCompositeEditor && notebookEditable && !editorReadonly && activeEditor == 'workbench.editor.notebook'" + }, + { + "key": "ctrl+shift+i", + "command": "-notebook.formatCell", + "when": "editorHasDocumentFormattingProvider && editorTextFocus && inCompositeEditor && notebookEditable && !editorReadonly && activeEditor == 'workbench.editor.notebook'" + }, + { + "key": "ctrl+shift+f", + "command": "editor.action.formatDocument", + "when": "editorHasDocumentFormattingProvider && editorTextFocus && !editorReadonly && !inCompositeEditor" + }, + { + "key": "ctrl+shift+i", + "command": "-editor.action.formatDocument", + "when": "editorHasDocumentFormattingProvider && editorTextFocus && !editorReadonly && !inCompositeEditor" + } +] \ No newline at end of file