A way to automatically organize #imports in Xcode

后端 未结 9 1621
眼角桃花
眼角桃花 2021-01-30 20:38

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

9条回答
  •  醉酒成梦
    2021-01-30 21:04

    I've found Cedar Shortcuts to at least be usable. It's not as good as Eclipse's import feature (it doesn't organize imports), but it can keep you from having to go to the top of a class file and typing an import statement. With this plugin you just place the cursor on the class that needs imported and press Ctrl + Option + I. Here's the github project. https://github.com/cppforlife/CedarShortcuts

提交回复
热议问题