windows: Window -> Preferences -> Java -> Editor -> Mark Occurrences mac: Ecliper -> Preferences -> Java -> Editor -> Mark Occurrences