问题描述
当我想使用自动完成ctrl-space来用新变量更改现有变量时,我遇到了问题,我编写或导航了新名称,但是在选择新名称时,它会插入光标所在的位置,而不是替换旧变量.在Delphi IDE中,这是默认行为(即替换而不是在光标位置插入).
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).
示例:如果我想用MyVar2替换 MyVar1 并将光标放在 My 之后,它将变成 MyVar2Var1
Example: if I want to replace MyVar1 with MyVar2 and place the cursor right after My it becomes MyVar2Var1
推荐答案
而不是按键,而是在显示自动完成框时,按 + .
Instead of hitting key, when auto-complete box is shown, hit +.
这篇关于使用自动完成而不是插入时,netbeans替换变量名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!