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

Overview

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.

You might also like...
A VisionCamera Frame Processor plugin for fast buffer resizing

vision-camera-resize-plugin A VisionCamera Frame Processor Plugin for fast buffer resizing. By resizing buffers to a smaller resolution, you can achie

This simple cordova plugin will download picture from an URL and save to IOS Photo Gallery.

Photo Viewer This plugin is intended to download a picture from an URL into IOS Photo library.. How to Install Cordova: cordova plugin add https://git

Cordova plugin for detect screenshots and recordings

cordova-plugin-detect-screen-capture This plugin detects screen recording and screenshot events. The plugin will only work on devices with iOS = 7 Su

API surface for Swift plug-ins using the Swift Plugin Manager

SwiftPlugin The minimal API surface required for the Swift Plugin Manager to create instances from a loaded plugin. Additional documentation and refer

Cordova plugin to display a native color-picker dialog

Color Picker Plugin for Cordova (cordova-plugin-color-picker) Description This plugin allows you to display a color-picker native dialog in iOS and An

Metazoom - A virtual camera plugin to pixellatedly share your screen

MetaZoom A virtual camera plugin to pixellatedly share your screen. See LICENSE.

Flutter openvpn - A new Flutter plugin that uses OpenVpn

flutter_openvpn A new Flutter plugin that uses OpenVpn. Installation Depend on i

PerFolderResourcesPublishPlugin - Per-folder resources plugin for the Publish package

Per-folder resources for Publish A Publish plugin that copies per-folder resourc

Touch ID Plugin (Cordova) for iOS

cordova-plugin-gctouch-id Touch ID Plugin (Cordova) for iOS Author: Giulio Caruso aka rdn Index Description Technical Documentation Screenshots Adding

Comments
  • Does not highlight symbols when using #if statements

    Does not highlight symbols when using #if statements

    I've got a bunch of code that I block out using statements like:

    if !TARGET_OS_IPHONE

    ...

    elif TARGET_OS_IPHONE

    ...

    endif

    It seems that the plugin randomly misses out on symbols that are in fact 'active'.

    opened by guidedways 1
  • Crashes when selecting Highlight color

    Crashes when selecting Highlight color

    When I open to select the highlight color, if I change the color 3 times, the 4th time it crashes.

    Xcode 7.2

    Process:               Xcode [62764]
    Path:                  /Applications/Xcode.app/Contents/MacOS/Xcode
    Identifier:            com.apple.dt.Xcode
    Version:               7.2 (9548)
    Build Info:            IDEFrameworks-9548000000000000~7
    App Item ID:           497799835
    App External ID:       814662604
    Code Type:             X86-64 (Native)
    Parent Process:        ??? [1]
    Responsible:           Xcode [62764]
    User ID:               501
    
    Date/Time:             2015-12-17 10:14:22.458 -0500
    OS Version:            Mac OS X 10.11.2 (15C50)
    Report Version:        11
    Anonymous UUID:        B65A2B8D-A1AB-4A11-95D4-BEF6954E30E5
    
    Sleep/Wake UUID:       35E80280-4AA8-4E71-ABEE-C13853DB9E92
    
    Time Awake Since Boot: 230000 seconds
    Time Since Wake:       2700 seconds
    
    System Integrity Protection: enabled
    
    Crashed Thread:        0  Dispatch queue: com.apple.main-thread
    
    Exception Type:        EXC_CRASH (SIGABRT)
    Exception Codes:       0x0000000000000000, 0x0000000000000000
    Exception Note:        EXC_CORPSE_NOTIFY
    
    Application Specific Information:
    Sending colorPanelColorDidChange: to <AutoHighlightSymbol: 0x7fe1987d0980> from <NSColorPanel: 0x7fe19b2c0870>
    ProductBuildVersion: 7C68
    UNCAUGHT EXCEPTION (NSInvalidArgumentException): *** -getRed:green:blue:alpha: not valid for the NSColor NSCalibratedWhiteColorSpace 1 1; need to first convert colorspace.
    UserInfo: (null)
    Hints: 
      0: Sending colorPanelColorDidChange: to <AutoHighlightSymbol: 0x7fe1987d0980> from <NSColorPanel: 0x7fe19b2c0870>
    Backtrace:
      0  0x00007fff96d20aca __exceptionPreprocess (in CoreFoundation)
      1  0x0000000104e00c67 DVTFailureHintExceptionPreprocessor (in DVTFoundation)
      2  0x00007fff8781773c objc_exception_throw (in libobjc.A.dylib)
      3  0x00007fff96d2098d +[NSException raise:format:] (in CoreFoundation)
      4  0x000000011568a59c -[AutoHighlightSymbol colorPanelColorDidChange:] at /Users/gmogames/Library/Application Support/Alcatraz/Plug-ins/AutoHighlightSymbol/AutoHighlightSymbol/AutoHighlightSymbol.m:154 (in AutoHighlightSymbol)
    ...
    
    opened by gmogames 1
  • Enable the Auto Hight Symbol feature after installation

    Enable the Auto Hight Symbol feature after installation

    Spec suggestion

    After installing the extension, the feature in the Editor -> Auto Hight Symbol is not checked initially. Set the default return value of [AutoHighlightSymbol isEnabled] to YES so the developer can enjoy this feature instantly after she installs this extension.

    opened by danielbas 0
Owner
Nelson
Full-time iOS manager and developer, check out my LinkedIn page for more information. https://www.linkedin.com/in/tainelson
Nelson
Xcode plugin to open the GitHub page of the commit of the currently selected line in the editor window.

Show in GitHub / BitBucket Xcode plugin to open a related Github or BitBucket page directly from the Xcode editor code window. Installs easily through

Lars Schneider 242 Jul 20, 2022
Xcode-streamdeck-plugin - A Stream Deck plugin for Xcode

Stream Deck Xcode Plugin This repository contains a Stream Deck plugin to add so

Daniel Kennett 77 Dec 27, 2022
Xcode plugin that brings ⇧⌘T from AppCode over to Xcode

Aviator An Xcode Plugin that brings ⇧⌘T over to Xcode This minimal plugin allows you to use the key combo ⇧⌘T to toggle between source and test files.

Mark Sands 29 Aug 18, 2018
Cordova-plugin-saveimage - This plugin helps you save images

cordova-plugin-saveimage This plugin helps you save images on iOS/Android Instal

Bernat 2 May 11, 2022
Applies filter to a selected image from the Gallery using Combine

CombinePhotoFiltering App CombinePhotoFiltering is an app that applies sepia and bloom to a selected picture from the Photos app. Highlights The app i

Mauricio Esteves 0 Nov 14, 2021
An Xcode plugin for manually symbolicating crash logs

CrashSymbal An Xcode plugin for manually symbolicating crash logs Install Build the project to install the plugin. The plugin gets installed in /Libra

Julian F. Weinert 38 Jun 3, 2021
XcodeColorSense - An Xcode plugin that makes working with color easier.

XcodeColorSense An Xcode plugin that makes working with color easier. Inspired by ColorSense-for-Xcode with extra care for Hex color Features Show col

Khoa 77 Jul 1, 2022
An Xcode 7 plugin to build and run an app across multiple iOS devices with one click.

RunEverywhere Xcode Plugin Overview An Xcode 7 plugin to build and run an app across multiple iOS devices with one click. Gone are the days of manuall

Eric Mika 322 Sep 7, 2022
An Xcode plugin to improve dealing with colors in your project

Crayons is an Xcode7 plugin with various features that improve working with colors in your projects ##Code palettes (iOS only) You can share palettes

Fabio Ritrovato 477 Sep 23, 2022
Xcode plugin for filtering the console area.

MCLog This plugin lets you easily filter the Xcode console log output. While you can already search the text in the console log output you are still l

Michael Chen 591 Oct 31, 2022