I love the \"Organize Imports\" command in Eclipse to implicitly add and remove classes imported into a source file (as in Java or ActionScript).
Is there a command in X
Swiftlint has an opt-in rule which if opted, will automatically sort the imports alphabetically.
Add - sorted_imports to your .swiftlint.yml file under opt_in_rules.
- sorted_imports
opt_in_rules
Run swiftlint autocorrect terminal command on project root directory (same where swiftlint.yml is stored).
swiftlint autocorrect