Autocompletion don't replaces previous identificator

<a href="TestA.html" target="_top">TestA1</a>

Place cursor between _ and t, press ctrl+space, choose _blank, press Enter. Result:

<a href="TestA.html" target="_blanktop">TestA1</a>

Why not
<a href="TestA.html" target="_blank">TestA1</a>
?

 

0
3 comments

Hi there,

>Why not

Use TAB instead of ENTER if you need to replace old value.

ENTER just inserts while TAB replaces.

2

just use Tab instead of Enter for choosing value from completion. This is the standard completion behavior: Enter inserts the text of the selected completion element, and Tab replaces the identifier under caret with the selected element. The keys can be swapped in Settings | Keymap (Editor Actions/Choose lookup Item Replace and Editor Actions/Choose lookup Item actions)

1
Avatar
Permanently deleted user

Andriy, Elena, thanks :)

0

Please sign in to leave a comment.