Collapse and expand scala code in emacs
Activate hide-show minor mode
M+x hs-minor-mode
Go to the first line of the block you want to collapse, like a method definition, a curly brace, etc, and type
C+c @ C+c
See http://emacswiki.org/emacs/HideShow for futher reading
In emacs terminology M (META) stands for ESC or ALT, while C for CTRL, so the sequence are:
- "escape", "x" and type "hs-minor-mode"
- "control", "c", "@", "control" and "c"
Written by Jose Miguel
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Scala
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#