Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [code-folding]

Code folding is a feature of some text editors and IDEs that allow some text to be temporarily hidden or "collapsed" in order to hide detail.

Filter by
Sorted by
Tagged with
0 votes
1 answer
106 views

I there a way to make Overleaf folded code stay folded after refreshing the page?

I am working with lagre Tikz enviroments. It would be nice to have an option that keeps at least the axis folded in order to facilitate better navigation betweeen the different figures.
Ales Hinteregger's user avatar
2 votes
1 answer
1k views

How to change folding settings in Vim-LaTeX?

I am new to Vim so I apologize if the answer to this questions is too obvious. I wanted to try Vim-LaTeX, and I like it so far after a couple of days using it. This is the problem that I have: I ...
Vladimir's user avatar
  • 827
0 votes
1 answer
655 views

Folding footnotes in VS Code

Folding sections works well in VS Code, but would someone know whether there is an extension that allows folding footnotes? I typically do this in VS Code: Here is some text.\footnote{ reference text ...
Timothy Roes's user avatar
3 votes
1 answer
1k views

Folding code between defined functions in Overleaf

I am using Overleaf with compiler pdfLaTeX (not sure if this is important), and want to have subsections of different colors, such as the example shown below after the end of the question. It all ...
Garf's user avatar
  • 510
8 votes
1 answer
1k views

Code folding specific environments with TeXstudio?

Using TeXstudio, it is possible to fold sections of code. On the left hand side there appear small arrow markers which if you click will fold sections of code. Here is an example. and after clicking ...
Barry's user avatar
  • 83
1 vote
0 answers
119 views

How to save folded code in Texmaker? [closed]

I'm using Texmaker 5.0.2 on Ubuntu 17.04. Is there any way to save the foldings I set in my LaTeX code? I tried saving session but it doesn't seem to work.
Dennis Z.'s user avatar
1 vote
0 answers
177 views

Macro to fold-in %BEGIN_FOLD on opening file?

is there any way to get TeXstudio to always display all %BEGIN_FOLD ... %END_FOLD blocks folded in when opening a file? Possibly using a macro? Thanks a lot! rmh
Rupert Hölzl's user avatar
1 vote
0 answers
718 views

How do I hide large comments that is already commented out?

\documentclass{article} \usepackage{comment} \begin{document} \begin{comment} lots of stuff here \end{comment} \end{document} Is there a way to "hide" or minimise the entire comment ...
jacob smith's user avatar
2 votes
1 answer
1k views

Code folding in Kile

Kile allows me to fold the ocde in between begin-end blocks. However, I am interested in manually grouping parts of the text. Is there a way to do that? To give an example from another IDE, Netbeans ...
osmanlioglu's user avatar
9 votes
1 answer
6k views

How to code-fold in TeX-Studio or LaTeX in general?

I want to fold the whole part before \begin{document} where it is just formatting the LaTeX document. Is there a way to do this in LaTeX, in general, or at least in TeXstudio? Could I use some \begin{}...
Sergei Wallace's user avatar
3 votes
1 answer
1k views

Folding commented sections in Texstudio 2.6.6

I want to know, if and how can I apply code folding to commented out sections in Texstudio 2.6.6?
Abhinav's user avatar
  • 365
0 votes
1 answer
791 views

LaTeX editor with in-line folding [duplicate]

Quick question. Are there LaTeX editors that can do in-line folding? That is, that can fold a demarcated piece of code or text without having that piece of code or text on its own line or group of ...
LukeB's user avatar
  • 161
2 votes
0 answers
419 views

AUCTeX folding and square brackets in math mode

I want to use the folding functionality of AUCTeX, mainly to replace math macros with the corresponding symbols. But at the same time I want to continue to use square or curly brackets additionally to ...
newtothis's user avatar
4 votes
1 answer
221 views

Auctex: bug in LaTeX-mark-environment?

Before I send this on to the developers, I'd like to know if others can confirm this problem. Consider these two environments: \begin{flalign*} sdfsdf \end{flalign*} \begin{flalign*} && ...
daleif's user avatar
  • 55k
1 vote
1 answer
2k views

How can I fold sections containing include commands in TeXMaker?

I have used Emacs to edit my .tex files and I got used to the fold/unfold option. I am back to TeXMaker for some time and I would like to also fold/unfold sections, subsections and so on. This can be ...
Ludovic C.'s user avatar
  • 8,918
1 vote
1 answer
496 views

Folding file-specific macros in AUCTeX

What is the best way to have AUCTeX fold some math macros specifically for one file? For example in this very trivial example: \documentclass{minimal} \newcommand{\foo}{\lambda} \begin{document} $\...
Najib Idrissi's user avatar
1 vote
1 answer
716 views

How to use code folding with Aquamacs?

I would like to use code folding with Aquamacs but I don't find any reference to do it. I would like to fold the figure and the paragraph. I've already tried all the combination listed here. Can ...
G M's user avatar
  • 2,245
10 votes
1 answer
4k views

vim: nice folding function

I use Latex-Box but I really like vim-latex (a.k.a Latex-Suite) folding. I tried to copy Latex-Suite's folding.vim file to my ftplugin/tex folder but cannot make it work. Has anyone written a nice ...
petobens's user avatar
  • 3,306
4 votes
1 answer
224 views

Maintain display of arguments for certain folded environments with AUCTeX

When working with some environments (function and friends from l3doc prompted this), it is desirable to have the environment's arguments visible at all times: Some text that, in reality, shouldn't be ...
Sean Allred's user avatar
  • 27.4k
26 votes
2 answers
2k views

Folding braces in Emacs/AucTeX

I have some code looking like this: 142 \newcommand*\john[2]{ 143 blah blah blah blah 144 blah blah 145 blah blah blah 146 blah 147 } 148 149 \newcommand*\peter[3]{ 150 blah blah ...
John Wickerson's user avatar
11 votes
2 answers
5k views

Folding entire section in AUCTeX?

I'm new to AUCTeX and I wonder: is it possible to fold entire sections or subsections of a LaTeX document for a better overview, so that they are only represented by their headline (kind of a tree ...
MostlyHarmless's user avatar
23 votes
4 answers
14k views

Code folding in LaTeX

The editor that I use, Texmaker, provides code folding only for things in the language, like \section and \begin{foo} ... \end{foo}. I would like to be able to make my own folding sections, like in ...
mshang's user avatar
  • 543
4 votes
3 answers
728 views

Is there an editor with code block folding, one click dvi-ps-pdf compilation, etc?

I am a Windows user and using TeXnicCenter now. But I want to change to another one because TeXnicCenter does not provide us with a code block folding. The new editor I want to use: runs on Windows. ...
Display Name's user avatar
  • 47.1k
11 votes
3 answers
2k views

Can one "fold" part of the paragraphs in LyX

By "folding", I mean condense some part of the codes, and by one click , you can unfold them.
user avatar