# Moving, Duplicating and Deleting

The most common thing you'll do in your editor is move, duplicate and delete lines. Historically, we have done this with the use of copy/paste and the delete key when necessary. VS Code contains functionality that makes this process much more productive.&#x20;

Here are a few more keyboard shortcuts to add to your repertoire.&#x20;

| Action         | Keyboard Shortcut               |
| -------------- | ------------------------------- |
| Duplicate line | Opt/Alt + Shift + Down/Up Arrow |
| Move line      | Opt/Alt + Down/Up Arrow         |
| Delete Line    | Cmd/Ctrl + Shift + K            |

{% hint style="info" %}
Note that you don't need to select a line in VS Code to copy/cut it. Just put your cursor anywhere on the line and press Cmd/Ctrl + C or Cmd/Ctrl + X and the entire line will be cut or copied. This is the default behavior of the editor.
{% endhint %}

Open the "index.html" file in the "start" folder.

### Move the "title" tag above the "link" tag.

* Put your cursor anywhere on the "title" line
* Press **Opt/Alt + Up Arrow**

![](https://707761804-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LlvtEHKkq5bvzPq1pJ4%2F-LlvtJMfPaOZK9HU1qdu%2F-LlxAMqVgsJ7MVzNjQjr%2F2019-08-10_15-16-11.gif?alt=media\&token=a2f68fee-77e7-426c-8943-2509ed263b66)

### Duplicate the "description meta tag

* Put your cursor anywhere on the line with the "meta" tag that has a name of "description"
* Press **Opt/Alt + Shift + Down Arrow**
* Change the "name" attribute to be "og:description"&#x20;

![](https://707761804-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LlvtEHKkq5bvzPq1pJ4%2F-LlvtJMfPaOZK9HU1qdu%2F-LlxA1G7nzaPPHQsSkYc%2F2019-08-10_15-14-07.gif?alt=media\&token=b7567c33-05bf-40d1-b960-4c5eaf8094e9)

### Delete the "description" meta tag

* Put your cursor anywhere on the line that has the `meta` tag with a name of "description"
* Press **Cmd/Ctrl + Shift + K**

![](https://707761804-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LlvtEHKkq5bvzPq1pJ4%2F-LlvtJMfPaOZK9HU1qdu%2F-Llx9X7YzcZf8ms5e2dg%2F2019-08-10_15-12-13.gif?alt=media\&token=462b5f8a-6e6d-4e9a-8b59-385f62a5a954)

