From 81022ea5762dbcf2df7105a7016889010ce05bb3 Mon Sep 17 00:00:00 2001 From: kasecato Date: Sun, 3 Mar 2024 20:22:38 +0900 Subject: [PATCH] Add #239 that Support in Using Enter to Apply Code Suggestion --- package.json | 7 +++++++ src/package-with-comment.json | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/package.json b/package.json index 528cd82..2c68077 100644 --- a/package.json +++ b/package.json @@ -108,6 +108,13 @@ "when": "suggestWidgetVisible && textInputFocus", "intellij": "Choose Lookup Item Replace" }, + { + "key": "enter", + "mac": "enter", + "command": "jumpToNextSnippetPlaceholder", + "when": "editorTextFocus && hasNextTabstop && inSnippetMode", + "intellij": "Next Template Variable or Finish In-Place Refactoring" + }, { "key": "ctrl+shift+[Enter]", "mac": "cmd+shift+[Enter]", diff --git a/src/package-with-comment.json b/src/package-with-comment.json index c1f977a..20cbefc 100644 --- a/src/package-with-comment.json +++ b/src/package-with-comment.json @@ -127,6 +127,13 @@ "when": "suggestWidgetVisible && textInputFocus", "intellij": "Choose Lookup Item Replace" }, + { + "key": "enter", + "mac": "enter", + "command": "jumpToNextSnippetPlaceholder", + "when": "editorTextFocus && hasNextTabstop && inSnippetMode", + "intellij": "Next Template Variable or Finish In-Place Refactoring" + }, { "key": "ctrl+shift+[Enter]", "mac": "cmd+shift+[Enter]",