I have a class with many (approximately 40) methods with names in SCREAMING_CASE_LIKE_THIS
.
Is there a quick way, perhaps via the code analysis/inspections, to rename all of these to more idiomatic names in camelCaseLikeThis
?
I have a class with many (approximately 40) methods with names in SCREAMING_CASE_LIKE_THIS
.
Is there a quick way, perhaps via the code analysis/inspections, to rename all of these to more idiomatic names in camelCaseLikeThis
?
It's not quite a batch, but if you position the cursor above the first of the methods, start a macro recording then do: control-alt-down shift-f6 down-arrow down-arrow carriage-return
then stop the macro, you now have a macro that goes to the next method and renames it as you desired (camel case, without underscores). You can then assign that macro to a shortcut and repeat the appropriate number of times. I tried adding the last step to the macro as being a key combination which was not bound, then assigning that combination to the macro itself (so it was self calling) but I could not get that to work. Also tried creating another macro which invoked the first x times, but that would also not work for some reason.
© 2022 - 2024 — McMap. All rights reserved.