# AucTeX: can I hide comments?

Is there a setting in auctex that can hide (fold) comments (paragraphs which start with %)?

## 1 Answer

You can use TeX-fold-comment (C-c C-o C-c) to hide the comment. You need to enable TeX-fold-mode to make use of this functionality.

See the AUCTeX manual on folding macros and environments for more information.

• Can I comment all instead of a single line? Also this does not work if there is a tab or space before %is it a normal behavior? – alper May 8 at 13:38
• This also does not fold comments as following pattern \begin{comment} comment \end{comment} – alper May 8 at 13:47