CodeGuide offers powerful refactoring capabilities and intelligent coding tools that will help you to do common coding tasks. This features are all language aware and will analyze your programs to work correctly.
CodeGuide allows you to easily rename methods, fields, constructors, variables, labels, classes or packages. It automatically updates all occurrences of the name throughout the project.
To rename a field, variable, label, method, class or package put the caret at an identifier in your code and select Refactor | Rename or press the rename button in the toolbar. A dialog show will show up showing the entity you want to rename and prompting you to enter the new name.
Enter the new name and press next. CodeGuide will then analyze your project to find out which files have to be changed. A dialog will show all of these files.
Press Finish to actually do the renaming or Cancel to abort.
CodeGuide also performs extensive checks to confirm whether the renaming is possible. For example if there is already another entity with the new name CodeGuide will not accept this new name. A dialog will show all the problems.
Press the Transfer to Output Window button to close the dialog and show the problems with hyperlinks to the source in an extra window.
CodeGuide allows you to move Java files or whole directory trees to another location in the file system and automatically updates all references. Select Refactor | Move classes/packages.... A dialog will appear where you can select all the files and directories which should be moved. Please note that all of those have to belong to one parent directory.
After pressing Next you will have to specify the destination directory to which all the files and directories should be moved.
After pressing Next CodeGuide will analyze all of your project files to see which files must be changed.
Press Finish to actually move the files and change all necessary source files. This will update import and package declarations in your code as well as fully qualified class names. Note that not only the moved files are changed but also files which are using them.
CodeGuide will also check wether the moving is possible taking into account the visibility of classes, methods and fields as well as name collisions.
CodeGuide is able to automatically extract a bunch of statements out of a method and create a new method. To do this select a couple of lines in your code and choose Refactor | Extract method.
CodeGuide will replace the selected statements with a call to a newly created method. All necessary variables are passed to this new method.
CodeGuide is able to automatically extract an expression out of a statement and create a new variable from it. To do this select the expression in your code and choose Refactor | Introduce variable.
CodeGuide will guess a name for the new variable.