Add Xcode imports from anywhere in the code

Inspired by Peter's Add #import "Class.h" for selected class I decided to make a macro that replaces an Xcode extension that I used to use. It allows me to type the import anywhere then I hit Control+Command+P and the macro moves it to the top of the file, at the end of the corresponding import block: #import "header", #import <header>, @import Framework, or import Framework.

Move Import :point_up:.kmmacros (18.8 KB)

1 Like