在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