Eclipse / Rename options in the project

I would like to change the parameter naming conventions. So far, we have used the "p" -prefix, but I think this is not necessary, and I would like to get rid of the prefix and also change the uppercase character that follows the "p" in lowercase. Is it possible to do this in the whole project in one run?

+4
source share
2 answers

To change the name of one parameter in an entire project in Eclipse, follow these steps:

Click option.

press [alt] + [shift] + [R].

enter a new name.

press enter to accept the new name, it will change throughout the project. This also works with class names, methods, etc.

Sorry, but so you should do this for all parameters again.

+1
source

Another solution is to use File / Search. You can find and replace all files in the workspace. It also accepts regular expressions.

0
source

Source: https://habr.com/ru/post/1440034/


All Articles