Renaming a lot of variables in many Java classes at once

前端 未结 6 1144
清酒与你
清酒与你 2021-01-04 01:51

I work in a pretty large Java-project (2500+ classes) that uses an old code standard where all member variables are prefixed with \"m_\" (e.g m_temperature). There is reall

6条回答
  •  长情又很酷
    2021-01-04 02:19

    If you are using eclispe IDE, you can do it in easy manner.

    Steps:

    1. select the variable
    2. right click on it
    3. click on refactor
    4. click on rename

    even in netbeans you can follow same steps. The IDE finds the reference and usages and replace it all.

提交回复
热议问题