Git Product home page Git Product logo

import's Introduction

Import ☝️

Xcode extension for adding imports from anywhere in the code

usage.gif

Why?

Because sometimes you are on 300th line of code and scrolling up just to add an import is a waste of time. This was built to replace Peckham, as  decided to drop support for Xcode plugins in Xcode 8.

Installation Guide (Xcode 8 / OSX 10.11+)

  • close Xcode
  • (OSX 10.11 only) sudo /usr/libexec/xpccachectl
  • download the Import app
  • unzip and copy to Applications folder
  • run (right click + open)
  • (optional) click on Install Key Bindings to install ⌘ + ctrl + P binding
  •  -> System Preferences... -> Extensions -> All -> Enable Import
  • open Xcode
  • select a source file
  • check if Editor -> Import -> ☝️ is there
  • WIN

### Usage

Import uses Xcode's autocomplete, this works best when written inside a function / a method

  • type: import MODULE_NAME (#import "HEADER_NAME.h" in Obj-C) as you normally would
  • press ⌘ + ctrl + P or alternatively Editor -> Import -> ☝️

Supported languages

  • Swift
  • Objective-C
  • C++
  • C

License

MIT, see LICENSE

import's People

Contributors

markohlebar avatar clementpadovani avatar

Watchers

James Cloos avatar enunen 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.