Feature Showcase: View the Scope of a Code Construct


Use the Scope Indicator to locate the current scope of a code construct (variable, namespace, method, etc.) within the Code Browser's tree hierarchy.

Before you start: Open the python_tutorial.kpf project, located under <komodo-installdir>\samples\python_tutorials\. Be sure that line numbers are enabled in Komodo (View|View Line Numbers).

Open the python_tutorial.kpf project. View the project in the Projects tab.




Double-click the preprocess.py file. The file opens in the Editor Pane in a preprocess.py tab.




Click the Code tab.




Click the '+' to expand the preprocess tree hierarchy. The tree contains all code constructs (variables, methods, imports, etc.) in the preprocess.py program.




Scoll down to line 129 in the Editor Pane.




Use the cursor to highlight the preprocess variable.




View the Status Bar. Notice the Scope Indicator displays the preprocess variable name and type.




Double-click the preprocess variable on the Scope Indicator. The Code Browser displays preprocess in the tree hierarchy. The current scope of the preprocess variable is located.