IntelliJ IDEA code completion comes in three different flavors (for more details, see Completion Features). On this page we're describing what's relevant to Scala code.
Basic
Each next Ctrl+Space will:
- First: show all variables based on simple resolution with appropriate access modifiers (private and protected are filtered out)
- Second: add all possible references, including implicit conversions of appropriate type (incorrect access members are still filtered out)
- Third: add inaccessible members (e.g. private fields).
Smart
Ctrl+Shift+Space shows suggestions list based on an expected expression type.