1.11.10 Code folding

CodeBlocks

[Contents] CodeBlocks Manual   [Search] Search

[Table of contents]

1.11.10 Code folding


CodeBlocks supports so called code folding. With this feature you can fold e.g. functions within the CodeBlocks editor. A folding point is marked by minus symbol in the left margin of the editor view. In the margin the beginning and the end of a folding point is visible as vertical line. If you click the minus symbol with the left mouse button the code snippet will be folded or unfolded. Via the menu ’Edit’ /’Folding’ you can select the folding. In the editor you see folded code as continous horizontal line.
Note:
The folding style and the folding depth limit can be configured via menu ’Settings’ /’Editor’ /’Folding’ .
CodeBlocks provides the folding feature also for preprocessor directives. To enable this feature select ’Fold preprocessor commands’ via the menu ’Settings’ /’Editor’ in the folding entry.
Another possibility is to set user defined folding points. The start of folding point is entered as comment with a opening bracket and the end is market with a comment with a closing bracket.
  //{
  code with user defined folding
  //}


[Previous] 1.11.9  Select modes in editor
[Next] 1.11.11  Auto complete

Created: 2010/25/05 11:52   Updated: 2010/25/05 11:52
Author: HighTec EDV-Systeme GmbH
Copyright © 2010 HighTec EDV-Systeme GmbH