Auto Highlight Symbol
About Xcode 8
Xcode 8 does't support plugins anymore, but there is a workaround, use at your own risk.
Xcode can highlight instances of selected symbol, but what it does is to add dash lines under the instances, which is hard to be noticed.
AutoHighlightSymbol is a plugin for Xcode, it adds background highlight color to those instances. It's super useful while you're tracing codes, especially when you want to figure out where a specific variable is used in a certain method.
You're welcome to improve it and send me pull requests.
Screenshots
Installation
-
Use Alcatraz to install and manage plugins, or
-
Download the sources, build the project and restart Xcode.
-
If you encounter any issues you can uninstall it by removing the ~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/AutoHighlightSymbol.xcplugin folder.
Usage
-
You need to enable Highlight instances of selected symbol option first from Xcode preferences -> Text Editing.
-
If it doesn't appear in your Xcode menu, read this wiki document for more information.
-
After installation, you need to enable it from Xcode [Editor] -> [Auto Highlight Symbol] menu.
Todo
- Integrate into Alcatraz
- Better highlight detection mechanism
- Better highlight rendering mechanism
Alternative
If you need more functionalities, you should give HighlightSelectedString a try.
License
AutoHighlightSymbol is available under the MIT license. See the LICENSE file for more info.
Contact
Any suggestions or improvements are more than welcome. Feel free to contact me at [email protected] or @NelsonT.
Thanks
AutoHighlightSymbol cannot be done without these great plugins.
And these great articles.