AppCode 2017.1 EAP: Create types and initializers from usage in Swift

New AppCode 2017.1 EAP (build 171.3691.17) is available for download on our confluence page.

The most important feature in this build is Create type from usage functionality for Swift.

Try using a type which does not exist and invoke ⌥⏎ on its usage:


Create type option declares new type in the same file. Choose whether you want to create a structenumclass or protocol:


Select Create type in a new file if you want it to be created in a separate file:


AppCode will generate the initializer stub if needed:


Do you want to create another one? Just use it in your code, press ⌥⏎ and have an option to generate it automatically:


In addition, now AppCode takes into account argument names in completion for Swift methods and functions:


Important note: currently we have a regression with completion for Swift class names in Objective-C (OC-15008). We are working on it right now and will fix this issue before the release.

That’s it! For the full list of fixes please see the release notes.

Your AppCode team
The Drive to Develop