Eclipse Che is a very versatile server and cloud based IDE. But it lacks useful refactoring tools that other IDEs offer. To make the code more modular and readable developer may want to create small methods for code fragments and the easy way to accomplish this is using a refactoring tool called extract method. In order to add this tool, a shortcut will be added to refactoring submenu in assistant menu.
Screenshot from another IDE that presents this tool.
Advantages of using extract method
More readable code
Minimizes code duplication
Isolates independent parts of code (Seperation of concern)
Eclipse Che is a very versatile server and cloud based IDE. But it lacks useful refactoring tools that other IDEs offer. To make the code more modular and readable developer may want to create small methods for code fragments and the easy way to accomplish this is using a refactoring tool called extract method. In order to add this tool, a shortcut will be added to refactoring submenu in assistant menu.
Screenshot from another IDE that presents this tool.
Advantages of using extract method
Simple example
After extracting details part