Preferences > Titanium Studio > Editors > JavaScript, check “Mark occurrences with background color”.

Source: https://developer.appcelerator.com/question/143513/highlight-variable-useage-in-a-file