How to make autocomplete *replace* the element it is called on?

Hi, another newbie question here.

Is there a setting for Webstorm to make it replace the element where an autocompetion occures, instead of keep it at the end of the autocompletion's data?

For exemple :

111.png

Leads to that, when "enter" is pressed :

222.png

I'd prefere "createServer" to be totally replaced by "createClient".

Is it possible?

1
3 comments

Hi there,

Use Tab instead of Enter.

6

Thanks!

0

I wanted to do the opposite. I wanted to make autocomplete to not replace text next to cursor when I press Tab. And I finally found the solution to this! In keymap search for Choose Lookup Item:

And edit Choose Lookup ItemChoose Lookup Item and Insert Dot and Choose Lookup Item Replace accordingly. I set it like this for myself:

Now I can use either Tab or Enter to choose IntelliSense items and it will not replace text next to cursor.

 

7

Please sign in to leave a comment.