13.1.5 Source Menu

This section lists the menu items in the Source menu.

For keyboard shortcuts of some of these menu items, see Help > Keyboard Shortcuts Card.

Table 13-5. Source Menu Options
CommandAction
FormatFormats the selected code, or the entire file if nothing is selected.
Remove Trailing SpacesRemoves spaces at the end of the line.
Shift LeftMoves the selected line, or lines one tab to the left.
Shift RightMoves the selected line, or lines one tab to the right.
Move UpMoves the selected line, or lines one line up.
Move DownMoves the selected line, or lines one line down.
Move Code Element UpMoves the selected code element up one line.
Move Code Element DownMoves the selected code element down one line.
Duplicate UpCopies the selected line or lines one line up.
Duplicate DownCopies the selected line or lines one line down.
Toggle CommentToggles the commenting out of the current line or selected lines.
Complete CodeShows the code completion box.
Insert CodePops up a context aware menu that you can use to generate common structures such as constructors, getters, and setters.
Fix CodeDisplays editor hints. 
The IDE informs you when a hint is available when the light bulb is displayed.
Show Method ParametersSelects the next parameter. 
You must have a parameter selected (highlighted) for this shortcut to work.
Show DocumentationShows documentation for item under the cursor.
Insert Next Matching WordGenerates the next word used elsewhere in your code, as you type its beginning characters.
Insert Previous Matching WordGenerates the previous word used elsewhere in your code, as you type its beginning characters.
InspectRuns the specified inspection on the selected file, package, or project.
Scan for External ChangesScans file for changes made outside of MPLAB X IDE.