Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/chiahsien/AutoHighlightSymbol

A Xcode plugin to add highlight to the instances of selected symbol.
https://github.com/chiahsien/AutoHighlightSymbol

Last synced: about 2 months ago
JSON representation

A Xcode plugin to add highlight to the instances of selected symbol.

Awesome Lists containing this project

README

        

Auto Highlight Symbol
=====================

**About Xcode 8**

Xcode 8 does't support plugins anymore, but there is a [workaround](https://github.com/chiahsien/AutoHighlightSymbol/issues/6), 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
-----------

![](./screenshot.png)

Installation
------------
- Use [Alcatraz](http://alcatraz.io/) 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](https://github.com/chiahsien/AutoHighlightSymbol/wiki/Which-version-of-Xcode-does-it-support%3F) for more information.

- After installation, you need to enable it from Xcode **[Editor] -> [Auto Highlight Symbol]** menu.

Todo
----
- [x] Integrate into [Alcatraz](http://alcatraz.io/)
- [x] Better highlight detection mechanism
- [x] Better highlight rendering mechanism

Alternative
-----------

If you need more functionalities, you should give [HighlightSelectedString](https://github.com/keepyounger/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]](mailto:[email protected]) or [@NelsonT](https://twitter.com/NelsonT).

Thanks
------
AutoHighlightSymbol cannot be done without these great plugins.

- [SCXcodeMiniMap](https://github.com/stefanceriu/SCXcodeMiniMap)
- [HighlightSelectedString](https://github.com/keepyounger/HighlightSelectedString)
- [XcodeBoost](https://github.com/fortinmike/XcodeBoost)
- [FuzzyAutocompletePlugin](https://github.com/FuzzyAutocomplete/FuzzyAutocompletePlugin)

And these great articles.

- [How To Create an Xcode Plugin](http://www.raywenderlich.com/94020/creating-an-xcode-plugin-part-1)
- [Xcode 4 插件制作入门](http://www.onevcat.com/2013/02/xcode-plugin/)