> For the complete documentation index, see [llms.txt](https://overleaf-pro.ayaka.space/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://overleaf-pro.ayaka.space/latex/knowledge-base/046-hotkeys.md).

# Hotkeys

Here we have listed the hotkeys available in Overleaf. For Mac users, the below commands will use the **Cmd** key instead of **Ctrl**.

This list contains shortcuts for the Source editor, still most of them also work in the Source (Legacy) editor.

| Command                                                              | Operation                                                                                                                      |
| -------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------ |
| **Ctrl + F**                                                         | Find and replace.                                                                                                              |
| <p><strong>Ctrl + Enter</strong><br>or <strong>Ctrl + S</strong></p> | Compile the project.                                                                                                           |
| **Ctrl + Z**                                                         | Undo.                                                                                                                          |
| **Ctrl + Y**                                                         | Redo.                                                                                                                          |
| **Ctrl + Home**                                                      | Go to the first line of the current file.                                                                                      |
| **Ctrl + End**                                                       | Go to the last line of the current file.                                                                                       |
| **Ctrl + Shift + L**                                                 | <p>Go to a specific line (opens a dialog).<br>Use <strong>Ctrl + L</strong> in the Source (Legacy) editor.</p>                 |
| **Ctrl + /**                                                         | Toggle commenting for selected lines. (Comment/uncomment selected text.)                                                       |
| **Ctrl + D**                                                         | Delete the current line.                                                                                                       |
| **Ctrl + A**                                                         | Select all.                                                                                                                    |
| **Tab**                                                              | Indent the selection.                                                                                                          |
| **Shift + Tab**                                                      | Un-indent the selection.                                                                                                       |
| **Ctrl + U**                                                         | Change the selected text to upper case.                                                                                        |
| **Ctrl + Shift + U**                                                 | Change the selected text to lower case.                                                                                        |
| **Ctrl + B**                                                         | Bold.                                                                                                                          |
| **Ctrl + I**                                                         | Italics.                                                                                                                       |
| **Ctrl + Space**                                                     | <p>Open the autocomplete menu.<br>(Use <strong>Opt + Space</strong> also on Mac, rather than <strong>Cmd + Space</strong>)</p> |

A more comprehensive list of keyboard shortcuts can be found in [this Overleaf project template](https://www.overleaf.com/articles/overleaf-keyboard-shortcuts/qykqfvmxdnjf).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://overleaf-pro.ayaka.space/latex/knowledge-base/046-hotkeys.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
