Is it possible to view definition of a macro or a variable in the source code file?

Yes, you can open definition of a macro or variable by hovering the mouse cursor over the macro or variable. A small popup window displaying the definition of the macro ( refer to the image, Macro Definition as listed below) or variable ( refer to the image, Variable Declarations and Occurrences as listed below) appears.

Also, the IDE highlights all the occurrences of the variable in the source file, so you do not need to search for it manually.

Figure 1. Macro Definition

Macro Definition

Figure 2. Variable Declaration and Occurrences

Variable Declaration and Occurrences