code-folding
Is there any way to fold/collapse regional code in Eclipse?
Eclipse supports code folding. Go to workbench preferences -> General -> Editors -> Structured Text Editors, and check the “Enable folding” box. Then go to workbench preferences -> Java -> Editor -> Folding, and adjust your folding preferences.
Is it possible to jump to the next closed fold in Vim?
Let me propose the following implementation of the described behavior. nnoremap <silent> <leader>zj :call NextClosedFold(‘j’)<cr> nnoremap <silent> <leader>zk :call NextClosedFold(‘k’)<cr> function! NextClosedFold(dir) let cmd = ‘norm!z’..a:dir let view = winsaveview() let [l0, l, open] = [0, view.lnum, 1] while l != l0 && open exe cmd let [l0, l] = [l, line(‘.’)] let open = … Read more
Does Xcode support regions?
No, you can only fold code on various defined scoping levels in Xcode. You can use little tricks to make navigating via the function menu easier, though. #pragma mark Allows you to create a grouping where the label following mark will show up in the function menu. If the label is a hyphen, a separator … Read more
Xcode Swift code folding/collapse
Updates in Xcode 10: Xcode 10 has increased support for code folding, including: A new code folding ribbon showing all of the multi-line foldable blocks of code in the editor A new style for folded code in the editor that allows you to edit lines with folded code Support for folding any block of code … Read more
Xcode 9 expand/collapse braces/brackets {} side bar missing
Updates in Xcode 10: Xcode 10 has increased support for code folding, including: A new code folding ribbon showing all of the multi-line foldable blocks of code in the editor A new style for folded code in the editor that allows you to edit lines with folded code Support for folding any block of code … Read more
Enable code-folding by default
If you want to fold / unfold specific blocks of code, since Xcode 7, you have to enable that. Go to Xcode > Preferences > Text Editing > and check ‘Code folding ribbon’. (No idea why they disabled this useful feature by default.)
How do I make pyCharm stop hiding (unfold) my Python imports?
As this question may be useful for people who also are not looking for the term “code folding”, I’ll make my comment an answer. As extracted from IntelliJ IDE Web Help, but also worked on PyCharm CE 3.4.1: Open the IDE Settings (File > Settings, or Ctrl+Alt+S). Under the “Editor” node, click “General” and then … Read more
How to achieve code folding effects in Emacs?
Folding is generally unnecessary with emacs, as it has tools that explicitly implement the actions people do manually when folding code. Most people have good success with simple incremental searches. See “foo” mentioned somewhere? Type C-sfoo, find the definition, press enter, read it, and then press C-x C-x to go back to where you were. … Read more