User`s guide
A Basic Tutorial for MPLAB IDE
© 2006 Microchip Technology Inc. DS51519B-page 35
2.10 CREATING CODE
Open the template file in the project by double clicking on its name in the Project
Window, or by selecting it with the cursor and using the right mouse button to bring up
the context menu:
FIGURE 2-11: PROJECT CONTEXT MENU (RIGHT MOUSE CLICK)
The file has some comments at the beginning, and this area can be used as a standard
comment information header for the file. For now you’ll leave this as it is, but if this were
a real project, you could put information about your design here.
FIGURE 2-12: TEMPLATE FILE
The code in the first part of the file is for more advanced functions such as setting up
interrupts and Configuration bits in a final application. These details can be ignored at
this point with focus on writing the code. The new code will be placed in the file at the
point after the symbol Main is defined.
Scroll down to the bottom of the file.
Note: Line numbers are shown here. Line numbers may be toggled on/off by right
clicking in the editor window, selecting Properties, and then
checking/unchecking “Line Numbers” on the Editor tab of the Editor
Options dialog.