# 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"

![](/files/-LlxFPaNbMpEZZ1R9Tm1)

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.

![](/files/-LlxG8eKH9rVcotmB4z8)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://burkeholland.gitbook.io/vs-code-can-do-that/master/exercise-3-navigation-and-refactoring/multiple-cursors.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
