Code folding is a feature of IDEs that allows to hide or, in other words, fold fragments of code.

learn more… | top users | synonyms (2)

1
vote
1answer
25 views

Move to next fold of level 1 in vim

I am looking for a good way to jump between function definitions in C++ code. I like the idea of using folds for that, because I can move to the next function/method using zj, but that only works if ...
0
votes
1answer
152 views

In Sublime Text, how can I specify the fold level, with keyboard shortcuts, without having to unfold all first?

I'm trying to work out how to get code folding working how I want in Sublime Text 2. I can ⌘+K, ⌘+J to unfold all. Then I can do ⌘+K, ⌘+1 to fold all. At this point, I want to be able to go straight ...
2
votes
1answer
123 views

Notepad++ blockwise code fold/unfold (recursive)

Is there a way to fold/unfold a selected block of code in notepad++? I am aware of the shortcuts alt0 and altshift0 (Fold/unfold all), but this is not what I am looking for. I usually start by ...
2
votes
0answers
129 views

How to make Sublime behave like Vim while folding code?

I'm recently moving from Vim to Sublime. Then I find some differences here, when I fold some code in Sublime, it automatically select those code, then I have to press Esc to cancel. Furthermore, if I ...
0
votes
0answers
37 views

How do I add folding support to custom languages in Komodo Edit?

I created a custom language using the language project template. It seems to work in general (like color syntax) except that I have no folding in the editor. This language is works with indents like ...
0
votes
0answers
45 views

When typing a new function, the {} combination opens up all folds (vim)

I'm using the following :set foldmethod=syntax And after I close two folds with zc Then proceed to write a new function, immediately after I close the block with a curly bracket } (I do this in ...
3
votes
1answer
355 views

Notepad++: Save code folding status or open collapsed

I have found similar questions as http://stackoverflow.com/questions/9157518/how-to-save-collapse-status-in-notepad and Is there a way to save the code folding in Notepad++?. And ...
2
votes
1answer
105 views

Vim Turn off syntax highlight for some elements

I'm trying to redefine the default syntax highlight for the Folded element so that it does not show an undesirable background color like the one on the right: What I want is something like ...
1
vote
1answer
369 views

Code folding in SQL Developer's SQL Worksheet

Is there a way to enable code folding in Oracle SQL Developer's SQL Worksheet? Using version 3.2.20.09.
2
votes
2answers
85 views

Can vim treat a folded section as a motion?

I have a folded section in a text document. Can I use the fold as a motion in vim, in the same way a word or WORD is a motion with w/W? For example daw deletes around a word, so This is a |t|est ...
3
votes
0answers
154 views

Enable hideshow for more modes, e.g. Ruby?

hideshow is cool, but it's limited to only a few programming languages. Can someone help me add support for more, such as Ruby and Haskell?
4
votes
2answers
545 views

How can I set foldlevelstart in vim to just fold nothing initially, still allowing zr to work immediately?

In vim, I typically set foldmethod to indent for most file types. In general, I like files to open with all folds open. However, it is useful to start immediately using zm to start closing folds ...
2
votes
1answer
2k views

Arbitrary code folding in Eclipse?

I know that we can fold methods,if statement and ... .But I want to fold arbitrary part of code that is written in a method.I guess that in NetBeans we can do this: // <editor-fold desc="describe ...
2
votes
1answer
97 views

How to search/replace while including or excluding folded text?

Is there any way to run a command like: :%s/tempdir/temp_dir/g But apply it only to either folded or unfolded code?
2
votes
2answers
280 views

Batch fold text files with bash script

I am having a hard time doing something quite simple. I have around 2000 .txt files which are composed of a single line of digits. I would like to fold the single line into one column with many rows, ...
0
votes
0answers
147 views

Vim: show subfold headers inside closed folds

Is it possible to show the headers of all subfolds under their respective parent folds in vim? This would be incredibly useful, for example when writing latex, where the document may have 4-5 levels ...
5
votes
1answer
1k views

Is there a way to save the code folding in Notepad++?

When editing a large file, I like to collapse code fragments using the + symbols in Notepad++'s sidebar. However, the code is completely unfolded when I close and reopen a file. Is there a way to ...
0
votes
2answers
489 views

In Vim, I'm trying to have all class methods fold automatically when I open a file

When I open a PHP file that contains a class, how can I have Vim automatically fold the document up like this?:
1
vote
1answer
68 views

jump to <++> keeping fold

to jump in vim, I use nnoremap <c-j> /<++><cr>c/+>/e<cr> but, when the <++> are in a close fold, the <c-j> delete all fold, for this I change to nnoremap ...
0
votes
1answer
372 views

How can I define vim syntax folding for Informix 4GL source code?

I use vim to edit Informix 4GL source code which has this sort of syntax: FUNCTION FOR ... ... END FOR END FUNCTION I wish to fold the functions using za zM etc This works :set ...
1
vote
1answer
2k views

How to make Vim not fold everything automatically? [duplicate]

Possible Duplicate: vim: enable folds but don't automatically close them Whenever I open Vim, it automatically folds everything. So the first thing I invariably do is to unfold ...