Move a class using drag-and-drop

You can move a class using drag-and-drop. This method provides a quick and easy way of reorganizing your Project Tree. For the best results, use this method for smaller projects where the source class is visible at the same time as the destination location without the need to scroll up or down in the Project Tree. If you cannot see both locations, use cut and paste to move the class.

You can move a class using drag-and-drop by following these steps:

  1. Open the Project Tree window if it is not already open.
  2. Expand the project and select the class to move.
  3. Select the class and drag it to the new position in the class hierarchy.

    A grey overlay is displayed when you drag the class over the tree, and an arrow indicates where you are allowed to drop the class. This ensures that you can pinpoint the new location for the class.