> For the complete documentation index, see [llms.txt](https://docs.overleaf.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.overleaf.com/getting-started/how-do-i-use-overleaf/redesigned-overleaf-editor/contextual-menu.md).

# Contextual Menu

The contextual menu provides a tailored right-click experience within the source editor.

The context menu is a custom interface that appears when you interact with the source editor. It's designed to prioritize the most relevant actions based on your current task, replacing the standard browser menu to keep you focused on your project. &#x20;

### How to access:

* **Right-click:** Click anywhere within the editor area.
* **Keyboard:** Press Ctrl + Click (this is the same on Windows, Linux, and macOS).

{% hint style="warning" %}
The custom menu only appears within the editor's text area. Right-clicking on the PDF previewer will still trigger standard or specific menus for those areas.
{% endhint %}

### Using your browser's native context menu:

There's currently no setting to turn off the custom context menu. If you'd rather use your browser's own right-click menu (for example, to access browser-level options like "Inspect"), hold **Shift** while right-clicking.&#x20;

{% hint style="info" %}
On macOS, holding **Shift** overrides the custom menu even when using the keyboard shortcut. **Shift + Ctrl + Click** also opens the browser's native menu.
{% endhint %}

### Common Actions:

The menu provides immediate access to standard text manipulation tools. Availability of these items may change based on your project permissions (e.g., Read-only vs. Edit) or whether text is currently selected.

* **Cut / Copy / Paste:** Standard clipboard operations.
* **Delete:** Quickly remove selected text blocks.
* **Comment:** Add a line comment.

![](https://3502988919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVetOkhFZmAC8QCQK0Pi7%2Fuploads%2FXdEvL9GYS7h8EVhAw10v%2Funknown.png?alt=media\&token=4c0436d6-3a45-4b44-9e5e-28a7435859d6)

### Specialized tools

* **Jump to location in PDF:** Instantly syncs the PDF preview to the corresponding line in your source code.
* **Back to Editing:** Brings you back to the editor to make changes
* **Comment:** Make a comment on the selected line of code

![](https://3502988919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVetOkhFZmAC8QCQK0Pi7%2Fuploads%2FjbjkiHQzfE2MJSKyr6zL%2Fimage.png?alt=media\&token=c263f591-bd9a-410e-aa24-157b86a3e21b)

{% hint style="warning" %}
The menu is context-sensitive. You may see different options depending on selection state, editor mode, permissions.
{% endhint %}


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.overleaf.com/getting-started/how-do-i-use-overleaf/redesigned-overleaf-editor/contextual-menu.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
