Git Product home page Git Product logo

auto-importer-for-xcode's Introduction

Auto Importer for Xcode

CI Status

Quickly import your headers on the fly without having to manually go to the top of your file and type the import statement.

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.

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

  • If you get an error alert while typing the shortcut, it may be because of a bad bundle build, so delete ~/Library/Application Support/Alcatraz/Plug-ins/Auto-Importer, ~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/Auto-Importer and ~/library/Developer/Xcode/DerivedData/* and reinstall from scratch.
  • 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.

Dependencies

Roadmap

  • Read headers from frameworks.

Misc

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

About Citrusbyte

Citrusbyte

This software is lovingly maintained and funded by Citrusbyte. At Citrusbyte, we specialize in solving difficult computer science problems for startups and the enterprise.

At Citrusbyte we believe in and support open source software.

Citrusbyte and the Citrusbyte logo are trademarks or registered trademarks of Citrusbyte, LLC.

auto-importer-for-xcode's People

Contributors

cb-frontend avatar chourobin avatar lucholaf avatar zenangst avatar

Watchers

 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.