From 805e34dfcbd8fab0e89f974d808448fb6000fae5 Mon Sep 17 00:00:00 2001 From: Yan Zhang Date: Wed, 9 Jun 2021 12:41:58 +0800 Subject: [PATCH] add keymap for type hierarchy Signed-off-by: Yan Zhang --- README.md | 2 +- package.json | 7 +++++++ src/package-with-comment.json | 7 ++----- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 173aa4f..f20ad50 100644 --- a/README.md +++ b/README.md @@ -175,7 +175,7 @@ ctrl+] | cmd+] | Move to code block end | N/A ctrl+[ | cmd+[ | Move to code block start | N/A alt+7 | cmd+7 | Structure | ✅ ctrl+f12 | cmd+f12 | File structure popup | ✅ -ctrl+h | ctrl+h | Type hierarchy | N/A +ctrl+h | ctrl+h | Type hierarchy | ✅ ctrl+shift+h | cmd+shift+h | Method hierarchy | N/A ctrl+alt+h | ctrl+alt+h | Call hierarchy | ✅ f2 | f2 | Next highlighted error | ✅ diff --git a/package.json b/package.json index e63a7a7..e479678 100644 --- a/package.json +++ b/package.json @@ -724,6 +724,13 @@ "when": "editorHasCallHierarchyProvider", "intellij": "Call hierarchy" }, + { + "key": "ctrl+h", + "mac": "ctrl+h", + "command": "java.action.showTypeHierarchy", + "when": "editorTextFocus", + "intellij": "Type hierarchy" + }, { "key": "f2", "command": "-editor.action.rename", diff --git a/src/package-with-comment.json b/src/package-with-comment.json index a335ec1..36638d5 100644 --- a/src/package-with-comment.json +++ b/src/package-with-comment.json @@ -1091,16 +1091,13 @@ "when": "editorTextFocus", "intellij": "File structure popup" }, - /* { "key": "ctrl+h", "mac": "ctrl+h", - "command": "", + "command": "java.action.showTypeHierarchy", "when": "editorTextFocus", - "intellij": "Type hierarchy", - "todo": "N/A" + "intellij": "Type hierarchy" }, -*/ /* { "key": "ctrl+shift+h",