1. [Home](<https://delaparra-services.nl/>) 
1. [Knowledge hub](<https://delaparra-services.nl/knowledge-hub>) 
1. [Copy Line Up / Down](<https://delaparra-services.nl/knowledge-hub/copy-line-up-down>)

  

Category: Keyboard shortcuts 

# Copy Line Up / Down

  Explained by [Reinier de la Parra](<https://delaparra-services.nl/about>)  Updated November 25, 2026    

## What is Copy Line Up / Down?

 

Copy Line Up / Down: Duplicate the current line above or below the original. Copy line up or down duplicates the current line, or the selected lines, directly above or below. In VS Code it is ` Shift+Alt+Up/Down ` on Windows and Linux, or ` Shift+Option+Up/Down ` on a Mac. JetBrains IDEs use ` Ctrl+D ` or ` Cmd+D `. It is faster than select, copy and paste, and it does not touch your clipboard. That is handy when you are building a list of similar entries, such as routes, array items or test cases, and only need to change one value in each copy.

 

Definition source [Coders Lingo](<https://coderslingo.com/resources/open-dataset/>), [CC BY 4.0](<https://creativecommons.org/licenses/by/4.0/>)

 

## Frequently asked questions about Copy Line Up / Down

  

### What should you keep in mind with Copy Line Up / Down?

 

Its sibling, move line up or down, uses ` Alt+Up/Down ` in VS Code and shifts lines without duplicating them. Together they cover most of the small reshuffling you do while writing code. If you catch yourself copying the same line three times, a loop or a data structure may be the better solution.

 

## At a glance

   CategoryKeyboard shortcuts Explained by[Reinier de la Parra](<https://delaparra-services.nl/about>) UpdatedNovember 25, 2026

 

## More Keyboard shortcuts terms

 

- [ciw (change inner word)](<https://delaparra-services.nl/knowledge-hub/ciw-change-inner-word>) 
- [Clear Screen](<https://delaparra-services.nl/knowledge-hub/clear-screen>) 
- [Command Palette](<https://delaparra-services.nl/knowledge-hub/command-palette>) 
- [dd (delete line)](<https://delaparra-services.nl/knowledge-hub/dd-delete-line>) 
- [Delete Line](<https://delaparra-services.nl/knowledge-hub/delete-line>) 
- [Delete Previous Word](<https://delaparra-services.nl/knowledge-hub/delete-previous-word>)

 

[All terms starting with C](<https://delaparra-services.nl/knowledge-hub#letter-c>)

 

## Skills

 

- ### Editor shortcuts (VS Code / Cursor and Vim)

 

Use when a user asks how to do something faster in VS Code (or Cursor) or Vim, asks what a keyboard shortcut does (e.g. Ctrl+D, Ctrl+Shift+P, F12, gg, dd, yy, ciw, :wq), wants to customise keybindings, or is stuck in Vim. Gives the correct shortcut for their operating system and can write keybindings.json entries.

 [View skill](<https://delaparra-services.nl/skills/editor-shortcuts>) [Download zip](<https://delaparra-services.nl/skills/editor-shortcuts/download>)

 

## Manuals

 

- [Keyboard shortcuts in VS Code and the terminal](<https://delaparra-services.nl/manuals/sneltoetsen-in-vs-code>) 
- [Installing Visual Studio Code](<https://delaparra-services.nl/manuals/visual-studio-code-installeren>)

 

## Need any help?

 

Stuck on one of these in your own project? Tell me what you are working on and I will tell you how I would approach it.

  [Get in touch](<https://delaparra-services.nl/availability>)

[HTML version](https://delaparra-services.nl/knowledge-hub/copy-line-up-down)
