Nelson
Nelson

Reputation: 3262

Turn off autocomplete tab deletion in Intellij

Here is an example of an issue I have. In Intellij if I am typing in front of String:

private statString foo = "bar";

And then I autocomplete static, String will be deleted. Is there a way to change the settings so that the autocomplete does not delete text?

Upvotes: 26

Views: 4598

Answers (3)

nokola
nokola

Reputation: 356

Per @yole's answer, adding screenshot showing how to in Rider/IntelliJ to prevent tab from overwriting text. In Settings, change the editor actions for Choose Lookup Item and Choose Lookup Item Replace:

how to make Tab not delete text

Upvotes: 18

Abacus
Abacus

Reputation: 19471

If you select from the autocomplete dropdown and press [Tab], the the selection replaces the following text.

You have to use [Return] to accept the autocomplete to have it inserted.

Upvotes: 26

mgershen
mgershen

Reputation: 1677

Does pressing enter key instead of tab key works for you?

Upvotes: 2

Related Questions