netbeans IDE代码自动收紧

1、netbeans的代码全部收紧(collapse)/展开(expand)的快捷键:

  collapse all:ctrl + shift +小键盘减号

  expand all:ctrl + shift + 小键盘加号

2、设置netbeans在打开一个文本文件时默认收紧/展开

   在netbeans7.1.2中: Tools >> Options >> Editor >> General >> Code Folding >> Collapse by Default选中哪个类型的文本就自动收缩哪个

原文地址:https://www.cnblogs.com/mabaishui/p/3025473.html