# Copy

> **TL;DR**
> `Refactor | Copy`
>
>
>
> `F5` (Windows), `F5` (macOS), `F5` (IntelliJ IDEA Classic (macOS)), `⌘ ⌥ Y` (macOS System Shortcuts), `F5` (XWin), `F5` (GNOME), `F5` (KDE), `F5` (Emacs), `F5` (Sublime Text), `F5` (Sublime Text (macOS)), `F5` (Xcode), `F5` (Visual Studio), `F5` (Visual Studio (macOS)), `F5` (ReSharper), `F5` (ReSharper (macOS)), `F5` (QtCreator), `F5` (QtCreator (macOS)), `F5` (NetBeans), `F5` (Eclipse), `F5` (Eclipse (macOS))

## Copy refactoring

The Copy refactoring allows you to copy a file or directory with its entire structure from one directory to another.

Procedure: Copy a file or directory

1. Select the desired item in one of the views or open it in the editor.

2. Do one of the following:

* From the main menu or the selection context menu, choose `Refactor | Copy`.

* Press `F5` (Windows), `F5` (macOS), `F5` (IntelliJ IDEA Classic (macOS)), `⌘ ⌥ Y` (macOS System Shortcuts), `F5` (XWin), `F5` (GNOME), `F5` (KDE), `F5` (Emacs), `F5` (Sublime Text), `F5` (Sublime Text (macOS)), `F5` (Xcode), `F5` (Visual Studio), `F5` (Visual Studio (macOS)), `F5` (ReSharper), `F5` (ReSharper (macOS)), `F5` (QtCreator), `F5` (QtCreator (macOS)), `F5` (NetBeans), `F5` (Eclipse), `F5` (Eclipse (macOS)).

3. In the [Copy dialog](null) that opens specify the new name and destination, then click OK.

