You can check that brackets are matched by placing the cursor
inside code and multiple-clicking. Each click selects a higher
level of the Mathematica expression.
For example, placing the cursor on
fun1 and clicking three times results in the following
selection.
In addition, the move to match and move to expression features are also useful for navigating around Mathematica programs.