Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how can I force intellij to order autocomplete options just alphabetically?

The problem is:

IntelliJ shows fields or methods after I type dot (.), but when I select one of them, IntelliJ moves selected item to top of items regardless of alphabetic order. Then when I need to call all methods of an instance (for example), it is possible to forget call some methods because every time I select an items, their order will be changed

how can disable intellij idea autocomplete optimization and force it to order autocomplete options just alphabetically?

like image 270
Homayoun Behzadian Avatar asked Mar 08 '23 12:03

Homayoun Behzadian


1 Answers

You want to sort the auto complete options lexicographically.

You can set this as the default behaviour using Settings > Editor > General > Code Completion. Here's a screenshot:

enter image description here

You can also set this by clicking on the icon in the bottom right hand corner of the auto complete display. Here's a screenshot:

enter image description here

More information in the docs.

like image 172
glytching Avatar answered Mar 10 '23 11:03

glytching