Reputation: 9133
I've moved from Eclipse to IntelliJ, and I love it! One thing I miss though, is the suggestions to correct typos of fields and the like.
For example:
int myfield = 5;
myField++;
This would give me a lightbulb quick fix to Change to 'myfield'.
In IntelliJ, the closest I've come to this functionality is the Rename Refererence suggestion, which isn't quite as quick, especially in classes with many other fields.
Is there a way to achieve this behaviour in IntelliJ?
Upvotes: 4
Views: 4938
Reputation: 681
In IntelliJ 13.x, go to Settings > IDE Settings > Editor > Code Completion. Make sure Autopopup Code Completion is checked. This will auto suggest myfield when you start typing myField, and you can select with cntl-space (or the mouse).
It will even correct it automatically if you just type a space in myField if you have Insert selected variant by typing dot, space, etc. checked. Also check out Auto-insert when only one choice
Upvotes: 2