# Moving and copying Tcl elements

In this section, you will use refactoring to move and copy resources between Tcl packages.;

1. Create a new project as shown in the first section of this tutorial.

2. Open the Script explorer view and right click the project icon. Then select New > Tcl package context menu item.

3. Type a package name in the dialog and press Finish.

   A new package has been created in the current project.

4. Create a new Tcl file in the project as shown in the first section of this tutorial.

5. Now drag the file and drop it into the new package. Then click OK in the Move dialog. The file will be moved. Note that you may copy a file if you drag and drop it while keeping Ctrl pressed.

You can also move a file between packages using the context menu. To use it just right click the file and select Refactor > Move. Then choose the destination package in the dialog and press OK.

Tcl views