Git Product home page Git Product logo

auto-importer-for-xcode's Introduction

Auto Importer for Xcode

Quickly import your headers on the fly while typing.

Features

  • Allows to import a class/protocol/category header by selecting some text matching its name.
  • Allows to import from a list of all classes/protocols/categories and headers in your project.

Prerequisites

  • Xcode 6

Install

Alcatraz

  • Install Alcatraz and search for Auto-Importer

Manual

  • Clone and build the project, then restart Xcode.

NOTE: If you find a crash while typing the shortcut, it may be because of a bad bundle build, so delete ~/Library/Application Support/Alcatraz/Plug-ins/Auto-Importer and ~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/Auto-Importer and reinstall from scratch.

Usage

  • ⌘ + ctrl + H after selecting some text (or you can have no selection at all)
  • If the selected text matches the name of a class/protocol or category method, it will import the header and you're done, otherwise it will show a list of filtered identifiers and headers...
  • start typing the keyword of your import
  • use ↑ or ↓ keys to navigate
  • press ↵ or double click to add an import

NOTE: on the list, classes are shown as [C], protocols as [P] and category methods as [ClassExtended()]

Uninstall

Run rm -r ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins/AutoImporter.xcplugin/

Known Issues

  • When two workspaces (and thus two windows) are open, there is no distinction between workspaces and all identifiers are shown on the listing.
  • Avoid using 'InstallApplicationEventHandler' since it prevent other plugins to use it.

Roadmap

  • Read headers from frameworks.

Misc

Thanks to the Peckham project since I used some pieces from it.

auto-importer-for-xcode's People

Contributors

lucholaf avatar

Watchers

gryphon avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.