问题
In RubyMine, is it possible to insert manual fold markers (like vim or emacs)?
I want to automatically fold a very large hash whenever I open a file. It's available in IntelliJ.
回答1:
Yes. Rubymine has the same function like IntelliJ.
Select any code region you like, press option+command+T on a mac or some other similar keys binding on windows (I haven't a win install right now). Also you can do this from menu: Code -> Surround With....
To go to any custom folding, press option+command+. on mac, or from menu: Navigate -> Custom Folding....
来源:https://stackoverflow.com/questions/46901353/manual-markers-for-code-folding-in-rubymine