The following listed are some useful tips to get an overview of the currently selected source file and to directly modify it using the Outline view:
- Open the outline view (if not already open) by selecting the Window > ShowView> Outline.
- To get an overview about the currently selected source file (for this example, the Radio.c source file is used):
- The red 'S' symbol above an icon indicates that the object is static (S) or external (no red `S').
- Clicking the items in the Outline view jumps directly to the object in the source. This makes navigation really easy in the source file.
- Using the Include Browser on the includes gives a nice view about what is included from my main module:
- Similar options exists as well for variables and functions. You can jump to variable declarations and definitions, you can refactor (globally rename objects) or check who is using what. On variables you even can directly place a watchpoint which makes this view a standard view for me while debugging.
- To directly modify the source file:
- The view shows you the order of objects in the source file, so it is easy with this view to change the order of objects. To understand it, consider the following example,
RADIO_SniffPacket() is implemented after RADIO_DataIndicationPacket(). Now if you want to call RADIO_SniffPacket() from RADIO_DataIndicationPacket(), you need to make sure there are the appropriate prototypes declared, or RADIO_SniffPacket() is implemented earlier in the file than RADIO_DataIndicationPacket().
For the later you could move the implementation in the file. But instead doing this manually, you can simply drag & drop (move) items in the Outline view.