注释的崇高代码折叠(如在 Ace 中) [英] Sublime code folding of comments (as in Ace)

查看:59
本文介绍了注释的崇高代码折叠(如在 Ace 中)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 Cloud9(基于 Ace 编辑器)中,我可以在注释中定义任意代码折叠区域,例如:

In Cloud9 (based on the Ace editor) I can define arbitrary code folding regions within comments, for example:

// Descriptor {
function() {

    // Code

}
// }

折叠到:

// Descriptor {<->}

在这里试试,看看我的意思.

是否有现有的方法可以在 Sublime 中复制此功能?

Is there an existing way to replicate this in Sublime?

推荐答案

选择代码块并点击Ctrl + Shift + ["折叠.在折叠块之前展开放置指针并点击Ctrl + Shift + ]"

Select the block of code and Hit "Ctrl + Shift + [" to fold. To unfold place pointer before the folded block and hit "Ctrl + Shift + ]"

这是一个 youtube 视频链接:https://www.youtube.com/watch?v=80UUPMUAP-g

here's an youtube video link: https://www.youtube.com/watch?v=80UUPMUAP-g

这篇关于注释的崇高代码折叠(如在 Ace 中)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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