如果该字符完成了一个函数,编辑器允许函数折叠以最小化文本空间。
If the character completes a function, the editor enables subroutine folding to minimize the text space.
例如,Structure Browser就是一个有用的插件,它用一个可折叠的树来显示函数、类和方法,这样就可以浏览或显示一个大模块中的上下文。
For example, a handy plugin is the Structure Browser, which shows a collapsible tree of functions, classes, and methods that can be used to navigate or show context within a large module.
SelectionListener 实现的构造函数接受一个布尔变量,该变量定义要展开还是折叠树项目,具体取决于选中了哪个按钮。
The constructor for the SelectionListener implementation accepts a Boolean variable that defines whether the tree items are to be expanded or collapsed, depending on which button is selected.
应用推荐