Automatic Source Code Folding in nTrace

The Verdi system supports the folding of source codes such as statements, port lists, and comments automatically. Users can enable the folding capability to fold the source code on nTrace, so that they can just focus on their area of interest. Starting from Novas 2010.10 onward, this capability has been further improved, and divided into three options for users to fold different types of source codes.

To enable the folding capability, users can go the Source Code > Code Folding page in the Preferences form (which can be invoked from the Tools > Preferences command). There are three options on this page: Automatic Statement Folding, Automatic Comment Folding, and Automatic Port List Folding. Three kinds of source codes can be selectively folded by enabling these three options.

After enabling the option in the Preferences form, a “+” or “-” icon will be added to the left side of the source code. Clicking the “+” icon will expand the source code and clicking the “-” icon will collapse it again.

At the same time, some additional menu commands will also appear after turning on the preference setting, to allow users to expand or collapse different kinds of source codes. See the figure below for these menu commands.



Comments


If you have trouble reading the code, click on the code itself to generate a new random code.