How to automatically suggest not-included members without pressing Ctrl+space twice?
Answered
I'm using CLion 2022.3.3 on Debian 11. I notice when I have
int main() {
std::vec
}
there are no suggestions when my cursor is after "vec". I have to hit ctrl+space TWICE in order to get "std::vector" to show up as a suggestion, because it says it's not imported.
This is really annoying; when writing Java in Idea, writing Rust in CLion, writing Go in Goland, no such annoyance happens: suggestions for standard library and auto-import work perfectly without needing to press Ctrl+space once.
Is there a way to get suggestions to work that well in CLion? I'm looking for some setting like "automatically include all non-imported suggestions without needing to Ctrl+space twice"!
Please sign in to leave a comment.
Hello!
The first call of
ctrl+space
is intended to provide the fastest results. It shows only those results which are available at this point in the code.Pressing
ctrl+space
twice launches the more thorough (and usually slower) mechanism. It can suggest variants that require the inclusion of an additional header file (i.e. not-yet-included symbols).>I'm looking for some setting like "automatically include all non-imported suggestions without needing to Ctrl+space twice"
Unfortunately, there is no such setting.