Creating refactoring scripts

  1. Select Refactor > Create Script... from the refactoring menu to show the create refactoring script dialog.
  2. The create refactoring script dialog displays the entire refactoring history of your workspace. Drill down to an individual refactoring and select it to see more details about the performed refactoring in the details view below.
  3. Refactoring scripts can either be copied to the clipboard or saved to a file in your local file system. Select Clipboard to copy the created refactoring script to the clipboard, or File to store the script to a file. Click on Browse... to select the location where to store the refactoring script.
  4. Select all refactorings that you would like to save into a refactoring script. Select years, months, weeks or days to select all associated refactorings at once. Select a project to save all refactorings associated with the project to a refactoring script.
  5. In order to be able to better select refactorings from the refactoring history, there are two ways to group your refactorings:
  6. Click Create to create the refactoring script and close the dialog.

Related concepts

Refactoring support

Related tasks

Applying a refactoring script
Browsing the refactoring history

Related reference

Refactoring actions
Refactoring dialogs
Java preferences