Ctrl + 2, R: Renames a variable, a method or a class name locally in the current file. Select whole name of the class, method or variable you want to rename, and then press this shortcut: Type new name and press Enter when done, Eclipse automatically updates all related references for the new name, including ones found in other classes. This is the most frequently used shortcut in code refactoring. Alt + Shift + R: Renames a variable, a method, a class or even a package name. Here, we round up a list of shortcut keys used for code refactoring Java code in Eclipse IDE. Thus, using shortcut keys can boost your productivity. We do refactoring most of the time when writing code.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |