Netbeans 的替换宏
Replacement macros for Netbeans
是否可以为 NetBeans 编写替换宏?
我需要用 function isActive
替换 function is_active
。短正则表达式似乎是不可能的。
所以我想知道是否可以编写这样的宏?
疯狂的宏代码....
我们无法正常使用 find,所以我决定使用 find-selection
caret-begin
"function[^(]*_[a-z]"
selection-begin-line
find-selection
remove-selection
find
# there is no loop, so you need to repeat this lines many-many times (too many may hang your IDE)
caret-begin
find-next
caret-forward
caret-backward
delete-previous
to-upper-case
要使用此宏,您需要将焦点设置在文档上并打开正则表达式查找选项。
警告,可能会破坏您的代码。
是否可以为 NetBeans 编写替换宏?
我需要用 function isActive
替换 function is_active
。短正则表达式似乎是不可能的。
所以我想知道是否可以编写这样的宏?
疯狂的宏代码....
我们无法正常使用 find,所以我决定使用 find-selection
caret-begin
"function[^(]*_[a-z]"
selection-begin-line
find-selection
remove-selection
find
# there is no loop, so you need to repeat this lines many-many times (too many may hang your IDE)
caret-begin
find-next
caret-forward
caret-backward
delete-previous
to-upper-case
要使用此宏,您需要将焦点设置在文档上并打开正则表达式查找选项。
警告,可能会破坏您的代码。