Refactoring with eclipse

Asked

Viewed 400 times

2

By itself the eclipse already has the necessary for refactoring or you would indicate some tool to attach to the eclipse editor and use it more accurately?

  • Faro, welcome to Stack Overflow in Portuguese. Your question is interesting, but a little broad. Is there a specific need you need? Refactoring works differently for each technology (language, file type, etc.).

  • At the moment just an attempt to start refactoring things.

3 answers

1

Depending on what types of refactoring you want, the eclipse already comes embedded with the most basic refactoring:

  • Rename
  • Move
  • Extract methods
  • Extract variables
  • Enter parameters

See full documentation (in English)

There are also several plugins which can provide you greater flexibility in refactoring, however by default the eclipse already supports the functions of Refactoring standards.

  • Okay, thank you, if you know some tools and can indicate I’m here.

1

1


Refactoring features for the Java language are sufficient for 99% of cases. In fact, in my experience, I never needed to use all of them.

However, depending on the technology you work with, plugins additional are required for both editing, self-completion and refactoring. Classic examples are plugins such as Jboss Tools, Spring Tool Suite and Google GWT, which add important features to each distributor’s technologies.

On the other hand, it is important to note that in many cases automatic refactoring is not sufficient. This happens a lot when we store settings and class names in Strings or files properties, XML, Json, etc. In this case, use the search in files by pressing Ctrl+H on the flap File Search. Add a pinch of Regular Expressions, make the necessary replacements and you won’t have much trouble.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.