How to auto-complete code in IntelliJ IDEA.
Basic techniques to accelerate the editing process in IntelliJ IDEA using the code
completion: basic code completion, type completion etc.
This part describes the various techniques that enable you to speed up the editing process. These techniques include:
- Basic code completion on Ctrl+Space.
- Type completion on Ctrl+Shift+Space.
- Completing punctuation on Enter.
- Completing statements with smart Enter.
- Completing paths in the Select Path dialog.
- Expanding words with Alt+Slash.
- Negating expressions with an exclamation mark.
- Various tips and tricks on using the suggestion lists that appear on invoking code completion.
All types of code completion offered by IntelliJ IDEA support "CamelHumps" and "Middle Matching". It means that you can either complete any item by entering only its uppercase characters, or start typing any part of an item.
All completion results are ranged and ordered by relevance considering the caret position and surrounding code.