markohlebar / import Goto Github PK
View Code? Open in Web Editor NEWXcode extension for adding imports from anywhere in the code ☝️
License: MIT License
Xcode extension for adding imports from anywhere in the code ☝️
License: MIT License
see title.
mac10.12.2
xcode 8.2.1
xcode run codesign with my dev's cer
Please let me know if this is still working with Xcode 10.1 or will be working with coming versions. And if yes please mention the proper way to integrate
I'm on 10.11 and when I followed the steps in the readme I can't see it in Editor > Import. I can't see it in System Preferences > Extensions > All as well. When I click Install Key Bindings I get:
Binding is already set.
Import is ready to be used in Xcode.
But I can not see it under Editor. What might be causing this, how can I help debug?
This is an edge-case, but should be handled.
You can import twice a file/module, this doesn’t result in a compilation issue, but a simple check wouldn’t hurt.
OS X 10.11.6
XCode 8.1b3
sudo /usr/libexec/xpccachectl
-> System Preferences... -> Extensions -> All -> Enable Import
... but can't find Import
. I've attached a screen shot for clarity. Import
also does not appear in Xcode's Editor menu
import just support swift ?
Don't open app "Instal", showing alert: Unable to open the «Import» program.
I have installed successed,but the shortcut doesn't work。
Since the latest Xcode version it seems like that the editor scroll all the way to the top when entering a new include which makes this plugin quite unusable since you can't keep your focus at the current line.
Is there a cure for this?
When code contains class types in an array, the regex fails to ignore them and places the import below them.
Example:
[Fabric with:@[[Crashlytics class]]];
Expected:
the import is placed below other imports.
Actual:
the import is placed below the example line of code.
[Fabric with:@[[Crashlytics class]]];
#import "ABC.h"
I tried installing it on macOS 10.12 (16A323) with Xcode 8.0 (8A218a) and every time I pressed Install Key Bindings
the Import.app
was crashing.
For some reason, changing the order of the following steps fixed it for me:
I had to:
instead.
Any reason why this could be happening?
Other than that, this extension is awesome!
I've got it installed in Xcode Version 8.0 (8A218a) and Mac OS 10.12 (16A323) and it shows under Editor -> Import. If I press the hot key or click on it via them menu, nothing at all happens.
When pressing the hotkey the top bar flashes....so it definitely triggers the "Import Extension", but the Import extension does not do a thing.
How to fix this?
It would be nice if the plugin could insert the new import ...
alphabetically. For example we have current import lines:
import CoreGraphics
import Foundation
import UIKit
if we're to add a new import line like import CoreLocation
, it would be like this:
import CoreGraphics
import CoreLocation
import Foundation
import UIKit
the cmd+ctrl+P doesn't work
Ye. I read your source code and test the function of add KeyBinding, but got this problem. Any other step I should do so that I can modify KeyBindings file?
Xcode 8, Objective-C
Given there is an import already in the source file
#import "TMKObject.h"
When I add the import like so and cmd+ctrl+p
#import "TMKObjectEquality.h"
Expected:
The import is added to the import list.
#import "TMKObject.h"
#import "TMKObjectEquality.h"
Actual:
The import is not added to the import list with a message "The import has already been included"
The ability of having Objective-C class/protocol forward declarations in ObjC headers would be great.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.