summary refs log tree commit diff
path: root/configs/vscode/keybindings.nix
diff options
context:
space:
mode:
Diffstat (limited to 'configs/vscode/keybindings.nix')
-rw-r--r--configs/vscode/keybindings.nix42
1 files changed, 42 insertions, 0 deletions
diff --git a/configs/vscode/keybindings.nix b/configs/vscode/keybindings.nix
new file mode 100644
index 0000000..fcb6e4d
--- /dev/null
+++ b/configs/vscode/keybindings.nix
@@ -0,0 +1,42 @@
+{ ... }:
+
+[
+  # toggle the left panels nicely.
+  {
+    key = "ctrl+b";
+    command = "workbench.action.toggleSidebarVisibility";
+  }
+  {
+    key = "alt+b";
+    command = "workbench.action.toggleActivityBarVisibility";
+  }
+  # quickly switch left panel view by order.
+  {
+    key = "ctrl+alt+1";
+    command = "workbench.view.explorer";
+  }
+  {
+    key = "ctrl+alt+2";
+    command = "workbench.view.search";
+  }
+  {
+    key = "ctrl+alt+3";
+    command = "workbench.view.scm";
+  }
+  {
+    key = "ctrl+alt+4";
+    command = "workbench.view.debug";
+  }
+  {
+    key = "ctrl+alt+5";
+    command = "workbench.view.extension.test";
+  }
+  {
+    key = "ctrl+alt+6";
+    command = "workbench.view.extensions";
+  }
+  {
+    key = "ctrl+alt+7";
+    command = "workbench.view.extension.bookmarks";
+  }
+]