One of the features I really liked in the old PHPEclipse for Eclipse was the marking of occurrences or annotations(occurrences going forward). This functionality allows a developer to single click on a variable name and all occurrences of that variable (with the same name) are highlighted and marked in the right side occurrences bar. This can be very useful when working with legacy code or when you have a controller that is becoming rather complex. For those averse to using the mouse, moving the cursor to any position in the middle or beginning/end of a variable will act as if the variable were single clicked.
Recently I reinstalled Eclipse to remove the plugin developer environment(PDE) and suddenly the occurrences were not being marked in my PHP code. I was distraught because anyone who works in eclipse knows that all settings are stored in your workspace and not in the program directory so this setting should not have changed. Had some of my settings been wiped? Luckily after visiting PDT's home I found a ticket reference and some documentation around the fix for this behavior. By going into my preferences a la Windows->Preferences->PHP->Editor->Mark Occurrences I was able to re-enable this behavior and avert certain disaster! :P I don't ever recall explicitly setting this feature prior to the reinstall so maybe some oddity caused it to work prior to the re-install. Either way I must say that I still love Eclipse very much! <3
No comments:
Post a Comment