3
Hover the mouse pointer over an instance of variable i.
A tooltip appears: The scope of variable 'i' spans multiple functions.
4
Click the tooltip link for information about variables whose scope span multiple functions.
5
Click an instance of i.
Every reference to i highlights in sky blue and markers appear in the indicator bar on the right
side of the Editor.
6
Hover over one of the indicator bar markers.
A tooltip appears and displays the name of the function or variable and the line of code
represented by the marker.
7
Click a marker to navigate to the line indicated in tooltip for that marker.
This is particularly useful when your file contains more code than you can view at one time in the
Editor.
Fix the code by changing the instance of i at line 15 to y.
You can see similar highlighting effects when you click on a function reference. For instance, click on
addToSum.
20 Function Basics
20-16
Hover the mouse pointer over an instance of variable i.
A tooltip appears: The scope of variable 'i' spans multiple functions.
4
Click the tooltip link for information about variables whose scope span multiple functions.
5
Click an instance of i.
Every reference to i highlights in sky blue and markers appear in the indicator bar on the right
side of the Editor.
6
Hover over one of the indicator bar markers.
A tooltip appears and displays the name of the function or variable and the line of code
represented by the marker.
7
Click a marker to navigate to the line indicated in tooltip for that marker.
This is particularly useful when your file contains more code than you can view at one time in the
Editor.
Fix the code by changing the instance of i at line 15 to y.
You can see similar highlighting effects when you click on a function reference. For instance, click on
addToSum.
20 Function Basics
20-16
