Options Window: Editor (General Tab)
To access the Options window, select from the main menu: Tools ► Options (Windows and Linux)
mplab_ide ► Preferences (Mac OS)

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.


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.

Inner Classes

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


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

Javadoc Comments

Affects specially formatted comments for automatic documentation generation

Initial Comment

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

Tags and Other Code Blocks

No effect in MPLAB® X IDE at the present time.

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

lcdPutCur(1, 0); lcdPutCur(1, 0); lcdPutCur(1, 0); lcdPutCur(1, 0);
Cursor at beginning Cursor between 'd' and 'P' Cursor between 't' and 'C' Cursor at end
Ctrl+Shift+ Ctrl+Shift+ Ctrl+Shift+

Camel Case Navigation Disabled
Extend Selection to Next Word

lcdPutCur(1, 0); lcdPutCur(1, 0);
Cursor at beginning Cursor at end

Next word operations include:

Delete Next Word Ctrl+Delete
Insertion Point to Next Word Ctrl+
Extend Selection to Next Word Ctrl+Shift+

20th Annual
Microchip MASTERs Conference 2016
Register now - Deadline: July 29

JW Marriott Desert Ridge Resort-Phoenix, AZ

© 2016 Microchip Technology, Inc.
Information contained on this site regarding device applications and the like is provided only for your convenience and may be superseded by updates. It is your responsibility to ensure that your application meets with your specifications. MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED, WRITTEN OR ORAL, STATUTORY OR OTHERWISE, RELATED TO THE INFORMATION, INCLUDING BUT NOT LIMITED TO ITS CONDITION, QUALITY, PERFORMANCE, MERCHANTABILITY OR FITNESS FOR PURPOSE. Microchip disclaims all liability arising from this information and its use. Use of Microchip devices in life support and/or safety applications is entirely at the buyer's risk, and the buyer agrees to defend, indemnify and hold harmless Microchip from any and all damages, claims, suits, or expenses resulting from such use. No licenses are conveyed, implicitly or otherwise, under any Microchip intellectual property rights.