intelliJ idea代码折叠

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

visual studio styleidea

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

netbeans stylespa

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

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

 

 

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

相关文章
相关标签/搜索