General Tab of the Editor in the Options Window in the MPLAB® X IDE

Last modified by Microchip on 2024/06/24 06:31

General Tab

Features and behaviors controlled from the General tab in the Editor category:

general tab of the editor window

Code Folding

Code folding is a feature of the MPLAB® X editor that makes it possible to collapse (hide) and expand parts of a file, making it easier to focus just on the parts of interest. In general, any code block surrounded by braces '{' and '}' will be collapsible by clicking on the "-" and may be expanded by clicking on the "+" to its left. This includes function bodies, compound statements, and also groups of compiler directives. Code folds may be nested, providing a high degree of control over which parts of a file are visible at any one time. Code folding is configurable to include or exclude numerous code structures and also provides a means of creating custom code folds to hide and reveal any part of a file you desire.

show the code folding options

Use Code Folding

Enables or disables code folding feature. Enabled by default.

Collapse by Default

Checking items in this section will make the item display in its collapsed state by default.


Applies to C functions and C++ methods.

example of code folding

Inner Classes

No effect in MPLAB X IDE (an artifact of the IDE's NetBeans/Java origin).


No effect in MPLAB X IDE (an artifact of the IDE's NetBeans/Java origin).

Javadoc Comments

Affects specially formatted comments for automatic documentation generation.

example of java comments

Initial Comment

Affects comments/comment blocks that start on line 1 of the file.

show the effect of comments that start in line 1

Tags and Other Code Blocks

No effect in MPLAB X IDE at the present time.
Back to top

Camel Case Behavior

Enable Camel Case Navigation

When Camel Case Navigation is enabled, using "next word" operations will move the cursor to each upper case letter of the word. When disabled, "next word" operations will move immediately to the end of the entire word.

Camel Case Navigation Enabled
Extend Selection to Next Word

shows how camel case works when enabled

Camel Case Navigation Disabled
Extend Selection to Next Word

show how camel case works when disabled

Next word operations include:

show the next word options operating in code
Back to top