> 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 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 (or Cmd + Click on 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 %}

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

![](/files/zNav5FNKYg5Cl0Qs6vDt)

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

![](/files/v8npNyioHNleaj58quJU)

{% 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 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://docs.overleaf.com/getting-started/how-do-i-use-overleaf/redesigned-overleaf-editor/contextual-menu.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.
