Cursor tab is an excellent feature, but sometimes, a normal completion based on static analysis is better if the completion task is simple. For example, the following code snippet may get a good enough completion solely based on the type information (which is Option<usize>
). However, the default behavior of the <tab>
key is always the AI completion, which may give too complex or wrong completions. I always need to first <esc>
to cancel the AI completion and then <tab>
to get the simple static analysis-based completion.
let x: usize = optional_value.<to_complete> // Just need an `unwrap`
A dedicated key (e.g., <ctrl-tab>
) for the vanilla tab completion will be very convenient.