AppCode 2017.2: Extract Method refactoring and override/implement completion for Swift, __auto_type support for Objective-C, documentation improvements and more!
AppCode 2017.2 is here, so download and try it right now! The patch update is also available if you are using a previous 2017.1.3 version (if you’ve already installed AppCode 2017.2 RC2 build, then simply keep using it, since it’s the same as the released one).
Our second big update this year includes:
- Swift:
- __auto_type support for Objective-C/C/C++
- C++ parser and code analysis improvements
- Support for new Xcode 8.x-9.x documentation format
- Improved Build Messages
- VCS changes: Git Revert, Reword, updated commit message settings and quick-fixes
Swift
Extract Method
Extract Method is one of the most frequently used refactorings in any language and Swift is not an exception. Now you can use it in AppCode in the same way as for Objective-C/C and C++: select the code, press ⌥⌘M
, change the method signature as you want, set its visibility or use the default one, press ⏎
– and that’s it:
Override/implement completion
With the Override/Implement (^O
/^I
) action you can generate stubs for multiple methods or properties at once:
However, when you need to override a single method or property, it’s more convenient to have such ability directly from the completion list, and now it’s also possible in AppCode 2017.2:
Inline type hints
See types shown inline in the editor window for Swift variables without explicit type annotations with the new Show Swift type hints option:
Type hints are disabled by default and can be enabled globally via Preferences | Editor | General | Appearance | Show Swift type hints
.
There is also an option to toggle type hints on/off in the file you’re currently working on without touching global preference: View | Active Editor | Show Type Hints
.
New formatting options
Configure blank lines between properties and methods separately for classes and protocols:
Keep simple methods and functions in one line with the corresponding option in Preferences | Editor | Code Style | Swift | Wrapping and Braces | Keep when reformatting
:
__auto_type support
New AppCode correctly parses __auto_type
expressions in Objective-C/C/C++ and shows the __auto_type
keyword in the completion list:
C++ parser improvements
AppCode 2017.2 brings dozens of fixes in various parts of the C++ parsing and resolving engine implemented by the CLion team. From the user perspective, it means a reduced number of false-positive code analysis checks, more accurate navigation, refactorings, and other benefits. If you are interested in the full list of fixes, please refer to the CLion tracker.
Quick Documentation
Benefit from the initial support for Xcode 8.x-9.x documentation format and simply press F1
to open the relevant documentation for any symbol under the caret:
Build Messages
Easily find the problematic place in your code using note
messages displayed as a subnode for the corresponding error
or warning
:
Version control
Like all IntelliJ IDEs, AppCode 2017.2 brings a lot of improvements for the Version Control support:
- Revert several commits with the Revert action added to the Git Log context menu and quickly change the commit message using Reword.
- Keep your commit messages easy to read and expressive using the new settings and inspections available in
Preferences | Version Control | Commit Dialog
: - Reformat the commit message with the new quick-fix or using the
⌘⌥L
shortcut:
That wraps it up! Check out this short demo to see the new features in action:
Your AppCode team
JetBrains
The Drive to Develop