Smart Code Completion

Smart Code Completion is a feature that analyzes the first few characters you have typed and provides a list of possible endings. For example, if you are using a library with a bunch of functions that start with 'lcd', after typing in those letters, you will see a list of functions such as 'lcdInit()' and 'lcdWrite()' displayed for you to select from.

SmartCodeCompletion.png
Click image to enlarge

By default, smart code completion will not automatically pop up with suggestions. You need to press the keys Ctrl+Space twice to make the full list appear.

Once the list is showing, you can scroll through it and double-click on the item you wish to insert into your code.

ToolTip.png
Click image to enlarge

Once you have inserted a new function, a tool tip will appear to prompt you for any required parameters. If there are multiple parameters, the next one to be entered will be highlighted with bold text.

How to enable or disable automatic display of smart code completion

From the main menu, select Tools ▸ Options


CodeCompletionOptions.png
Click image to enlarge

Click on the editor icon at the top of the window, then select the Code Completion tab. Check or uncheck the options to suit your needs.


As of MPLAB X IDE version 1.0 and 1.1, the auto pop-up feature is not functional. We are working on the problem. Pressing Ctrl+Space twice will display the list.

Information contained in this publication 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.

© Microchip Technology Inc.