From d3975068f44704ba55eb8a0cdaec2ad13f83eae6 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Mon, 14 Jul 2025 15:58:15 +0100 Subject: [PATCH] feat(keybindings): add extra keybindings for various peek operations --- keybindings.json | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/keybindings.json b/keybindings.json index b368b1c..dc91101 100644 --- a/keybindings.json +++ b/keybindings.json @@ -547,11 +547,26 @@ "key": "alt+g alt+b", "command": "workbench.action.navigateBack" }, + { // Peek definition. + "key": "alt+shift+;", + "command": "editor.action.peekDefinition", + "when": "editorHasDefinitionProvider && editorTextFocus && !inReferenceSearchEditor && !isInEmbeddedEditor" + }, { // Peek symbol references. "key": "alt+shift+/", "command": "editor.action.referenceSearch.trigger", "when": "editorHasReferenceProvider && editorTextFocus && !inReferenceSearchEditor && !isInEmbeddedEditor" }, + { // Peek symbol implementations. + "key": "alt+shift+\\", + "command": "editor.action.peekImplementation", + "when": "editorHasImplementationProvider && editorTextFocus && !inReferenceSearchEditor && !isInEmbeddedEditor" + }, + { // Peek call hierarchy. + "key": "alt+shift+'", + "command": "editor.showCallHierarchy", + "when": "editorHasCallHierarchyProvider && editorTextFocus && !inReferenceSearchEditor" + }, // // =========================================================================== // MARK: Emacs-like behavior