AppCode release 2016.1: improved support for Swift and C ++
Hi, Habr!
Last week AppCode 2016.1 was released . Initially, we announced it as 3.4, but then, together with other desktop products, JetBrains switched to a new versioning scheme and now we will use it.
')
Since the release of version 3.3 , two more minor releases have passed, in which many useful things have appeared (for example, Evaluate Expression and Set Value for the debugger in Swift). In 2016.1, we mainly continued to work on Swift support - and this is what happened.
Swift
Now AppCode can correctly handle the following language constructs:
Types compliant with the OptionSetType protocol:
Self type:
Variadic parameters in functions and closures.
Alternate name declarations for existing types using the typealias keyword .
Types that are arrays of functions.
Code folding in Swift
Now declarations in Swift code can be minimized if necessary. This can be done in several ways:
Click the +/- icon on the left side of the editor:
By the way, if you then hover the mouse over the minimized section of code, the AppCode will show the minimized fragment:
Put the cursor on the code section and expand / collapse it by pressing โ+/โ- :
If you need to do the same for nested declarations, use โฅโ+/โฅโ- :
And if it was necessary to expand and collapse all possible sections of code in the current file, just press โงโ+ or โงโ- :
CocoaPods support
Starting with version 2.5 , the AppCode has a built-in CocoaPods manager that allows you to create pod-files directly from the IDE, highlights the syntax in them, shows auto-completion for keywords and helps you monitor the relevance of dependencies for a project, showing at the right time the intention or inspection (for example , that there is a new version for a specific library). In this version, we decided to update the list of auto-completion for keywords in pod-files and added the missing ones, such as:
use_frameworks!
install!
source
project
abstract_target
inherit! and abstract!
plugin
You can see how it all works in a short video below:
Build messages
In AppCode, there is a Build messages ( โ0 ) window that shows build messages for a specific project. For projects written in Swift, part of the messages that xcodebuild generates during the build (namely, it is used in the AppCode to build projects), were not quite correctly processed, which for obvious reasons did not like a large number of users. We fixed it in 2016.1 - now errors, warnings and messages like note displayed much more clearly and conveniently.
C ++ support and project directory management
All changes and improvements to working with C ++ code implemented in the latest version of CLion are also included in the new version of AppCode. This applies to the support of the variadic templates , and to the display of documentation for the code, and to the improved work of auto-import for symbols from STL . The reason is simple - the part of the functionality related to editing C ++ code is the same for both products and is used by each of them.
Therefore, we will not repeat ourselves and offer those for whom changes in C ++ support are important to read about them in the excellent postanastasiak2512 . Note also that the Mark directory as ... menu, which allows you to further control the indexing of various project directories and the work of refactorings in them, is available in AppCode in the Files mode for the project navigator ( โ1 ).
In the Diff viewer it is now possible to view changes for individual words in the string ( Highlight words option)
Redesigned Attach to local process interface ...
You can read about these and other product features on our website , you can follow the updates in our English-language blog , and right now we are traditionally ready to answer any of your questions in the comments to this post.