Pretty much all of my code and documentation is folded.
As an example, I will show the source to
Andys Binary Folding Editor.
It is usual to have a
If you move down to the
This file is the implementation of a string class in C++.
Notice that each method or group of methods is in its own fold.
Moving down to the first assignment operator fold, and entering this.
If instead, we had entered the virtual fold leading to
Note the way the classes If from within
This demonstrates that the concept of folding can apply to things other
than code, such as documentation.
Other candidates for folding can include, functions, groups of functions,
Screen shots taken of AE on Linux.
top
file for each project.
This file typically has some info about the project and annotated virtual fold
links to the source files which make up the project.
Accordingly, I have a file be.top
, which looks like this when
inside the editor.
str.C
virtual fold, and enter it
(using F3
or ^L ^I
in the default key bindings),
then the source file looks like this.
str.h
,
we would have seen this.
private
internal details are hidden
from immediate view.
be.top
, you had entered the virtual fold to
be.htm
, you would have seen.
case
s in a switch
statement, the body of an
if
, do
or while
, large comments etc..