> Markdown version of [Copy, Paste, Duplicate & Delete](https://vaadin.com/docs/next/tools/copilot/features/copy-and-paste). Section index: [llms.txt](https://vaadin.com/docs/next/tools/llms.txt)

# Copy, Paste, Duplicate & Delete

A component’s menu has what you’d expect of any editor: copy, paste, duplicate, and delete. Each changes the code.

Duplicate a button, delete it, and copy a field

1. Select a component and open its menu: click **⋮** in its badge, or right-click the component. **Duplicate** adds a copy right after it.

   [![Your browser does not support the video tag.](../../../vaadin/videos/copilot/copy-and-paste/01-duplicate.jpg)](../../../vaadin/videos/copilot/copy-and-paste/01-duplicate.mp4)

2. **Delete** removes the selected component, here the copy, from the view and from ContactView\.java.

   [![Your browser does not support the video tag.](../../../vaadin/videos/copilot/copy-and-paste/02-delete.jpg)](../../../vaadin/videos/copilot/copy-and-paste/02-delete.mp4)

3. **Copy** puts the selected component on the clipboard, here the Phone field.

   [![Your browser does not support the video tag.](../../../vaadin/videos/copilot/copy-and-paste/03-copy.jpg)](../../../vaadin/videos/copilot/copy-and-paste/03-copy.mp4)

4. Select a component and choose **Paste**. The copy goes after it, here at the end of the form.

   [![Your browser does not support the video tag.](../../../vaadin/videos/copilot/copy-and-paste/04-paste.jpg)](../../../vaadin/videos/copilot/copy-and-paste/04-paste.mp4)

## <a id="keyboard-shortcuts"></a>Keyboard Shortcuts

| Windows & Linux | macOS    | Does                                 |
| --------------- | -------- | ------------------------------------ |
| `Ctrl`+`C`      | `⌘`+`C`  | Copies the selected component.       |
| `Ctrl`+`V`      | `⌘`+`V`  | Pastes after the selected component. |
| `Ctrl`+`D`      | `⌘`+`D`  | Duplicates the selected component.   |
| `Delete`        | `Delete` | Deletes the selected component.      |
