intelliJ idea代码折叠

在intelliJ idea中不仅可以对类、方法等结构的代码进行折叠(ctrl+-)还可以自定义折叠代码。intelliJ支持两种风格的自定义代码折叠,如下:

visual studio style

//region Description    
Your code goes here...    
//endregion  

netbeans style

// <editor-fold desc="Description">    
Your code goes here...    
// </editor-fold>  

你可以直接手写,也可以使用快捷键实现对一段代码的自定义折叠,快捷键为:ctrl+alt+t

 

 

一年零五个月没更新博客了,占个位^-^。

posted @ 2016-05-18 17:18  至尊王者  阅读(15595)  评论(0编辑  收藏  举报