News

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:

cfu_1_a@2x

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

cfu_1_a@2x

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

cfu_1_1@2x

AppCode will generate the initializer stub if needed:

cfu_3@2x

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

cfu_4@2x

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

param_completion@2x

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
JetBrains
The Drive to Develop