netbeans replace variable name when using auto complete instead of insert

我怕爱的太早我们不能终老 提交于 2019-12-02 01:39:26

问题


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


回答1:


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



来源:https://stackoverflow.com/questions/11825579/netbeans-replace-variable-name-when-using-auto-complete-instead-of-insert

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!