Ekim
Ekim

Reputation: 1105

netbeans replace variable name when using auto complete instead of insert

I have a problem when I want to change an existing variable with a new one using auto complete ctrl-space I write or navigate the new name but when selecting it, it gets insert where the cursor is instead of replacing the old variable. In Delphi IDE this was default behavior (i.e replace instead of insert at cursor position).

Example: if I want to replace MyVar1 with MyVar2 and place the cursor right after My it becomes MyVar2Var1

Upvotes: 2

Views: 525

Answers (1)

Michał
Michał

Reputation: 56

Instead of hitting Enter key, when auto-complete box is shown, hit Ctrl+Enter.

Upvotes: 4

Related Questions