diff --git a/assets/settings/default.json b/assets/settings/default.json index a6b43ea405..8200e22e69 100644 --- a/assets/settings/default.json +++ b/assets/settings/default.json @@ -792,11 +792,11 @@ ], // When to show edit predictions previews in buffer. // This setting takes two possible values: - // 1. Display inline when holding modifier key (alt by default). - // "mode": "auto" - // 2. Display inline when there are no language server completions available. + // 1. Display inline when there are no language server completions available. // "mode": "eager_preview" - "mode": "auto" + // 2. Display inline when holding modifier key (alt by default). + // "mode": "auto" + "mode": "eager_preview" }, // Settings specific to journaling "journal": { diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rs index 54e9533d7e..2968e8e1c4 100644 --- a/crates/editor/src/editor.rs +++ b/crates/editor/src/editor.rs @@ -5648,6 +5648,77 @@ impl Editor { } } + fn render_edit_prediction_accept_keybind(&self, window: &mut Window, cx: &App) -> Option