# Multiple cursors

One of the most powerful things in modern text editors is the concept of multiple cursors. People usually have trouble understanding when you would ever use this feature. In this section we'll see a few places where you might use multiple cursors.

In the "app.js" file, use multiple cursors to rename the `currentColor` variable to `lampColor`.

* Select the first instance of `currentColor`
* Notice that the editor highlights other instances of the word in the file
* Press **Cmd/Ctrl + Shift + L** to add a cursor to every instance of the word
* Change it to "lampColor"

![](https://1151923643-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LlvtEHKkq5bvzPq1pJ4%2F-LlvtJMfPaOZK9HU1qdu%2F-LlxFPaNbMpEZZ1R9Tm1%2F2019-08-10_15-38-02.gif?alt=media\&token=d3455c44-f4f4-4b4b-9b41-d0debb610de3)

You may have noticed that when you did this, you changed the variable instance and the reference to the HTML element. This would break the application.

Instead of adding a cursor to every instance, sometimes you just want to add it to a few. You can select instances incrementally by pressing **Cmd/Ctrl + D**.

If you want to skip over an instance, press **Cmd/Ctrl + K + D**. Use this method to select just the instances of the variable and not the HTML element referenced.

![](https://1151923643-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LlvtEHKkq5bvzPq1pJ4%2F-LlvtJMfPaOZK9HU1qdu%2F-LlxG8eKH9rVcotmB4z8%2F2019-08-10_15-41-47.gif?alt=media\&token=877d2e88-4b35-4b0d-bd71-a2fc9d5cf45e)
