Skip to main content
v2026.11,986 entries · CC-BY 4.0

How to Add Comments in Overleaf (Review Comments and Code Comments)

Add, reply to, resolve and delete review comments in Overleaf, and toggle % code comments with Ctrl + /, with roles and notification settings.

Written and maintained by CASRAI Editorial Board

Published

On this page

In Overleaf, you add a comment by highlighting text in the editor and clicking the Add comment button that appears; the review panel opens on the left and you type the comment there. A second, different action also gets called commenting: toggling the selected lines of LaTeX source into % comments with Ctrl + / on Windows and Linux or Cmd + / on a Mac. The first creates a review note that collaborators see and can reply to; the second changes the source code itself. This guide covers both, in the order a researcher usually needs them.

What comments are used for in research writing

Overleaf is a browser-based LaTeX editor, and in research it is most often used to write a manuscript, thesis chapter or grant narrative with co-authors. Review comments let a co-author, supervisor or reviewer attach a question or suggestion to an exact passage without altering the text. Because the note stays anchored to the highlighted passage, the author can see what it refers to, answer it, and mark it resolved once the text has been dealt with. For the wider collaboration setting, see the site guide on LaTeX and Overleaf for collaborative writing, and for the etiquette of marking up a shared draft see track-changes etiquette for co-authored manuscripts.

Comments in Overleaf: the two meanings

Searches for comment in Overleaf, comments in Overleaf and Overleaf comments mix two tasks. The table below separates them so that you pick the right one before you start.

Meaning Where it lives How you do it Who sees it
Review comment The review panel, anchored to highlighted text Highlight text, then click Add comment Collaborators with access to the project
Code comment (% comment) The LaTeX source file itself Select lines, then Ctrl + / (Windows, Linux) or Cmd + / (Mac) Anyone who opens the source file
Comment on a tracked change The review panel, attached to a tracked change Comment on the tracked change Collaborators with access; requires Track Changes

The Overleaf documentation states the review-comment behaviour and the keyboard shortcut for toggling comments on selected lines. It lists no keyboard shortcut for adding a review comment, so the steps below use the on-screen button.

Access: where comments are available

Open the project in Overleaf in Overleaf and work in the editor. Review comments need no add-on or package: they are part of the editor. What you can do depends on the permission the project owner gave you and the mode you are in, which the roles section below sets out. Pricing and plan details are on Overleaf’s own site and are not covered here.

Step by step: add and manage a review comment

Add a comment

  1. Open the project and the file in the editor.
  2. Highlight the text you want to comment on.
  3. Click the Add comment button that appears.
  4. The review panel opens on the left. Type your comment in it.

Mention a collaborator

To direct a comment to a specific person, type @ in the comment and then the collaborator’s name or email address, and choose the person from the list that appears. Overleaf’s notification settings, described below, include an option that sends only mentions and replies.

Edit or delete your own comment

Open the ellipsis menu on the comment and choose Edit or Delete. The documentation describes this for comments you wrote yourself.

Resolve, reopen and delete a thread

  1. To resolve a comment once it has been dealt with, click the checkmark on it.
  2. To see resolved comments, use the resolved comments icon in the review panel.
  3. To bring one back, click the Re-open icon in the resolved list.
  4. To remove a whole thread, use the trash icon in the resolved list. The trash icon is shown only for resolved threads, so a thread has to be resolved before it can be deleted.

All collaborators with access to the project can view, reply to and resolve comments. That shared visibility is the reason to resolve a comment rather than delete it: a resolved thread can be reopened from the resolved list.

Comment in code: the % toggle

When people ask how to comment out a line in Overleaf, they usually mean the LaTeX source, not a review note. Select the lines, then press Ctrl + / on Windows or Linux, or Cmd + / on a Mac. The Overleaf keyboard shortcut list names this action Toggle commenting for selected lines. In LaTeX the percent sign starts a comment, so toggled lines are ignored when the document compiles; see the site guide on the percent sign in LaTeX for what that character does and how to print a literal one.

This kind of comment is part of the file. A co-author who opens the source sees it, which makes it suited to notes to yourself about a macro or a disabled paragraph, and unsuited to questions you want a collaborator to answer and resolve. For those, use a review comment.

Roles and modes: who can comment

Overleaf defines three modes: Editing, Reviewing and Viewing. Editing is the default for the owner and for collaborators with edit access. Reviewing is the default for reviewers and turns on Track Changes. You switch modes with the icon at the top right of the editor, and only users with edit access can switch. The data table below sets out the three roles as the documentation describes them.

The documentation says a Reviewer can make comments and tracked changes and respond to those of others, but cannot switch to Editing mode. An Editor working in Reviewing mode has the same limits as a Reviewer and can switch back to Editing. A Viewer has read-only access. The documentation does not state that Viewers can comment, so a collaborator who needs to comment should be invited as a Reviewer or Editor. The Reviewer role is available on the free plan, Reviewers cannot create or add files, and the role applies to named collaborators invited by email rather than to people using a sharing link; a person who arrived through a link can be upgraded afterwards. The project owner sets the permissions.

Comments on tracked changes

You can also comment on a tracked change, and those comments can be replied to, resolved and deleted like any other. Track Changes itself is a premium feature that depends on the owner’s account having premium access. To accept or reject changes, select the text (Ctrl/Cmd + A selects everything), choose Accept selected changes or Reject selected changes, and confirm. Copying a project applies all tracked changes, so accept or reject deliberately before you copy a draft that other people are still reviewing.

Notifications for comments

Comment notifications go by email, and email notifications must be enabled in your Account Settings. For each project, open File, then Settings, then Project Notifications, and choose either All project activity or Mentions and replies only. Notifications are bundled in ten-minute increments, so an email is not a real-time alert. A co-author who needs an immediate answer is better reached with a message outside Overleaf, with the comment left as the written record.

Troubleshooting

  • No Add comment button after selecting text. Check that you actually have text highlighted in the editor, and check your role: a Viewer has read-only access, and the documentation does not list commenting among Viewer abilities. Ask the project owner to change your permission if you need to comment.
  • Cannot find a resolved comment. Resolved comments leave the main view. Open the resolved comments icon in the review panel, where they can be re-opened.
  • No trash icon on a comment. Deleting a whole thread is offered only in the resolved list. Resolve the thread first.
  • No email about a comment. Confirm that email notifications are enabled in Account Settings and that the project notification setting is not stricter than you expect. Remember the ten-minute bundling.
  • Cannot switch out of Reviewing mode. Reviewers cannot switch to Editing; only users with edit access can change modes.
  • The line still prints after pressing the shortcut. The shortcut applies to selected lines in the source. Check that the lines were selected in the code editor and that they now begin with a percent sign.

Alternatives to Overleaf comments

Overleaf’s comments are tied to LaTeX projects. If your team is not committed to LaTeX, or wants a different tool, read the site’s comparison of Google Docs, Overleaf and Word for manuscripts, and for other collaborative LaTeX editors see Overleaf alternatives for collaborative LaTeX. A project kept in version control can also hold reviewer notes in a shared file; see manuscript version control for the corresponding author.

Frequently asked questions

How do I add a comment in Overleaf?

Highlight text in the editor, click the Add comment button that appears, and type the comment in the review panel that opens on the left.

How do I comment out code in Overleaf?

Select the lines and press Ctrl + / on Windows or Linux, or Cmd + / on a Mac. This toggles commenting for the selected lines.

Can I tag a collaborator in a comment?

Yes. Type @ followed by the collaborator’s name or email and pick the person from the list.

How do I delete a comment thread in Overleaf?

Resolve the thread with the checkmark, open the resolved comments list, and use the trash icon. The trash icon appears only for resolved threads.

Can everyone on the project see my comments?

Collaborators with access to the project can view, reply to and resolve comments.

Do comments appear in the compiled PDF?

Review comments are made in the review panel, not typed into the source. Lines turned into % comments are ignored when the document compiles.

Sources

Data: Overleaf collaborator roles and what the documentation says each can do with comments

Compiled from Overleaf's own documentation pages on reviewing and reviewers and on commenting: for each role, the capabilities the documentation states and whether the role can switch to Editing mode.

Overleaf collaborator roles and what the documentation says each can do with comments
RoleStated capabilityCan switch to Editing modeDefault mode
ReviewerMake comments and tracked changes; respond to comments and tracked changesNoReviewing
Editor (in Reviewing mode)Same limits as a Reviewer while in Reviewing modeYesEditing
ViewerRead-only accessNoViewing

Sources

Compiled by CASRAI from the sources above. Free to reuse under CC BY 4.0 with attribution.

Follow CASRAI

Research-administration guidance, standards updates and independent tool reviews.

Ask CASRAI · full access

Ask about How to Add Comments in Overleaf (Review Comments and Code Comments)

Full access: large monthly usage, up to 10 source passages behind each answer, and MCP and API access for Claude Code, Codex and other CLIs. Cancel any time.

An AI assistant for research: funder rules, compliance, methods and publishing. It links the sources behind its answers and labels answers that come from a web search.

Answers draw on CASRAI's guides and dictionary plus the federal and funder documents we index: Federal Register, Grants.gov, Regulations.gov and UKRI.

Works on this site and inside Claude, Cursor and the AI tools you already use.

Everything CASRAI publishes — this page, the dictionary, the guides and the news — stays open to read, with no account and no card.

Referenced across the research world

University of Cambridge logoColumbia University logoCrossref logoUniversity of Edinburgh logoHarvard University logoUniversity of Oxford logoPrinceton University logoStanford School of Medicine logoUniversity College London logoORCID logoUniversity of Cambridge logoColumbia University logoCrossref logoUniversity of Edinburgh logoHarvard University logoUniversity of Oxford logoPrinceton University logoStanford School of Medicine logoUniversity College London logoORCID logo
  • University of Cambridge logo
  • Columbia University logo
  • Crossref logo
  • University of Edinburgh logo
  • Harvard University logo
  • University of Oxford logo
  • Princeton University logo
  • Stanford School of Medicine logo
  • University College London logo
  • ORCID logo

View CASRAI adoption →