RubyMine 中代码折叠的手动标记 [英] Manual markers for code folding in RubyMine

查看:66
本文介绍了RubyMine 中代码折叠的手动标记的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 RubyMine 中,是否可以插入手动折叠标记(如 vim 或 emacs)?

In RubyMine, is it possible to insert manual fold markers (like vim or emacs)?

我想在打开文件时自动折叠一个非常大的散列.它可在 IntelliJ.

I want to automatically fold a very large hash whenever I open a file. It's available in IntelliJ.

推荐答案

是的.Rubymine 具有与 IntelliJ 相同的功能.

Yes. Rubymine has the same function like IntelliJ.

选择您喜欢的任何代码区域,在 Mac 上按 option+command+T 或在 Windows 上按其他一些类似的键绑定(我现在还没有安装 win).您也可以从菜单中执行此操作:Code -> Surround With....

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....

要转到任何自定义折叠,请按 option+command+. 在 Mac 上,或从菜单:Navigate -> 自定义折叠....

To go to any custom folding, press option+command+. on mac, or from menu: Navigate -> Custom Folding....

这篇关于RubyMine 中代码折叠的手动标记的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆