concept automate refactoring in category software development

This is an excerpt from Manning's book The Mikado Method.
Small improvements include improving naming, removing minor and obvious duplication, and deleting unnecessary code, to mention a few. These are the types of flaws that can be remedied in seconds with a modern IDE, usually by using an automated refactoring.
In this book, we talk a lot about using the IDE’s refactoring automation for many atomic and composed refactorings. But for an automated refactoring to work properly, it’s essential that the code compiles. Before we discovered the Mikado Method, we often tried to refactor code in a noncompiling codebase, usually with very poor results. Then, when we couldn’t compile our code, we had to revert to refactoring using search and replace, which is much slower and more error-prone than the automated refactorings of an IDE.