Questions tagged [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.

Most text editors and IDEs offer some way of hiding sections of the code in order to traverse the code more easily, only view the code currently being edited, and to show an outline of what code currently is in the file.

What code counts as a section and hence can be hidden, can be user specified or automatically added based on the syntax of the language, indentation or tokens (such as brackets).

454 questions
0
votes
1 answer

VIM Markdown folding: sections collapse subsections collapse subsubsection

Still really new to vim, I have the following question: having installed this vim plugin, how to enable that a fold of, e.g, a section collapses all sub-sections? I don't have to stick to the referenced plugin, any other will do as well. The…
nemron
  • 701
  • 6
  • 23
0
votes
1 answer

Notepad++ folding code

I've created a UDL in Notepad++, but there's 1 thing I cannot get to work. I'd like to be able to fold code from a ":JumpLine:" to the next: - :MaxCheck: //Pure safety work, so it will not override existing scripts …
Rikkert
  • 3
  • 3
0
votes
2 answers

OCaml: Pad List with Zeros using Folding

I've been stuck on this for hours now - wondering if anyone could help me out. I have two Lists of different lengths, and I want to pad the shorter list with 0's so that the two lists have the same length. I want to do this using the Folding…
0
votes
1 answer

Can two foldexpr coexist in my .vimrc?

1) I have in my .vimrc a fold expr (cf. the third example under the :help fold-expr section) which makes a fold out of paragraphs separated by blank lines : set foldmethod=expr set…
ThG
  • 2,361
  • 4
  • 22
  • 33
0
votes
2 answers

Rstudio execute folded lines

this might be nastily easy to answer: How do I execute folded coded and in particular functions, for-loops, and alike in RStudio? I have perused the documentary pages twice. nada. EDIT: But that doesn't work: If I execute the assign of a function:…
Toby
  • 533
  • 4
  • 15
0
votes
2 answers

how to write a function to fold certain patterns

Hello I am coding R and would like to be able to fold function In R I code function like this: myFnName <- function(some, args){ #some description or not some code } My question is how can I code a function that will fole the function like…
statquant
  • 13,672
  • 21
  • 91
  • 162
0
votes
1 answer

How to use VIM fold marks inside markdown?

I like to stick to the default VIM foldind marks {{{ and }}}, but creating some inside markdown make the liquid tag processor from jekyll go crazy, is there a way around to use them? If not, what's a best alternative?
oblitum
  • 11,380
  • 6
  • 54
  • 120
0
votes
2 answers

vim fold text with spaces in front

I'm trying to customize vim folding style and stuck with indentation. I know it has been asked multiple times here and I use this command (which seem to work for others) to test the appearance of fold: :set foldtext=' '.foldtext() This however…
sashkello
  • 17,306
  • 24
  • 81
  • 109
0
votes
4 answers

How can i fold both code and comments in Vim?

Vim can fold Ruby code, but not comments. After adding this in .vimrc to change foldmethod to comments, i can no longer fold code. autocmd FileType ruby,eruby \ set foldmethod=expr | \ set foldexpr=getline(v:lnum)=~'^\\s*#' How can i configure…
Sathish
  • 20,660
  • 24
  • 63
  • 71
0
votes
2 answers

Eclipse folding with java

Working with eclipse in a java collapsed file if i try to write a method between two collapsed methods when I write public and press space automatically the ide collapses the word public inside the method below. State initial - public methodA() …
user1151835
0
votes
1 answer

iPad coding app that allows code folding

I could get flamed for asking this, but here goes anyway... Does anyone know of a coding app that you can use on an iPad and that allows you to fold your code? I can't find one. I'll delete the question quite happily if it's judged inappropriate…
Nick
  • 5,995
  • 12
  • 54
  • 78
0
votes
3 answers

Little folding triangles: how can I create collapsible sections on a webpage?

Some webpages have a "turning" triangle control that can collapse submenus. I want the same sort of behavior, but for sections in a form. Say I had a form that had lender, name, address and city inputs. Some of my site's users are going to need a…
Tom
  • 101
  • 1
  • 2
  • 10
-1
votes
1 answer

How to do a Xamarin.iOS Folding Cell

I have found swift code and a plugin to do the a Folding Cell. However, is there any code or plugin to do this in Xamarin.iOS. This is what i found https://github.com/0ber/Folding-cell-programmatically. There is a plugin available for Android…
-1
votes
1 answer

`fold-create-marker` with default `{{{` marker not working properly when function definition contains `*`

I have this setting in vim foldmarker={{{,}}} commentstring=/*%s*/ foldmethod=marker I want to create new marker using zf, which does work for void foo(void bar) { } when I selected that and press zf, I get void foo(void bar) {/*{{{*/ }/*}}}*/ so…
graywolf
  • 7,092
  • 7
  • 53
  • 77
-1
votes
1 answer

Neovim foldtext has to be set for every new file opened

How to make the foldtext be applied globally on every file?. Nothing I've tried seem to work. I can make it work if I run :set foldtext=NeatFoldText() but I don't want to that on every file. This must be simple but I just don't know how. And yes…
1 2 3
30
31