Sublime代码折叠

一、显示折叠小三角

1、点击Sublime的Preferences->Setting-Default菜单,打开它的配置文件。

2、找到行

// Fold buttons are the triangles shown in the gutter to fold regions of text
"fold_buttons": true,

// Hides the fold buttons unless the mouse is over the gutter
"fade_fold_buttons": false,

*.不推荐你直接改它的默认配置文件,你可以在Setting-User里覆盖此变量值。

3、重启生效

二、折叠快捷键

Ctrl+Shift+[ 折叠代码
Ctrl+Shift+] 展开代码
Ctrl+KT 折叠属性
Ctrl+K0 展开所有
原文地址:https://www.cnblogs.com/eedc/p/6186393.html