Manual markers for code folding in RubyMine

北战南征 提交于 2019-12-11 10:19:29

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!