Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/markohlebar/Import
Xcode extension for adding imports from anywhere in the code ☝️
https://github.com/markohlebar/Import
macos xcode xcode-extension xcode-plugin
Last synced: 5 days ago
JSON representation
Xcode extension for adding imports from anywhere in the code ☝️
- Host: GitHub
- URL: https://github.com/markohlebar/Import
- Owner: markohlebar
- License: mit
- Created: 2016-10-05T13:29:07.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2022-04-14T10:28:10.000Z (over 2 years ago)
- Last Synced: 2024-08-16T11:42:53.547Z (4 months ago)
- Topics: macos, xcode, xcode-extension, xcode-plugin
- Language: Swift
- Size: 5.34 MB
- Stars: 848
- Watchers: 15
- Forks: 40
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-xcode-extensions - Import☝️ - Add imports from anywhere in the code. (The list / Helper on editing)
- awesome-ios - Import - Xcode extension for adding imports from anywhere in the code. (Xcode / Extensions)
- awesome-ios-star - Import - Xcode extension for adding imports from anywhere in the code. (Xcode / Extensions)
README
# Import ☝️
Xcode extension for adding imports from anywhere in the code.Now available on [App Store](https://itunes.apple.com/ie/app/import/id1167060791?mt=12)
![usage.gif](/Resources/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](https://github.com/markohlebar/Peckham), as decided to drop support for Xcode plugins in Xcode 8.### Installation Guide (Xcode 8 / OSX 10.11+)
- get it on [App Store](https://itunes.apple.com/ie/app/import/id1167060791?mt=12)
OR
- close Xcode
- (*OSX 10.11 only*) `sudo /usr/libexec/xpccachectl`
- download the [Import app](https://github.com/markohlebar/Import/releases/download/1.0.7/Import.zip)
- 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.
### Privacy
This app doesn't collect any of your data.