Added support for Swift 4.2, made Generate and navigation to type definition for Swift, improved formatting, supported iOS extensions in the debugger, began to work better on projects with several targets, and also made a bunch of cool and useful features.
Supported all features of version 4.2, which could affect the work of the IDE:
If something is still missed, be sure to write in the comments. And about Swift 5 you can read here .
We made all the standard actions for generation, which are for Objective-C - initializers, description
/ debugDescription
, hashValue
and comparison operator:
For all actions except the initializer, you can also select the template used for generation.
Everything is simple - click on ⇧⌘B
and immediately get to the definition of the type:
We learned how to highlight the exit points by setting the cursor to break
, continue
, try
, throw
or return
:
In almost every release, we are improving something in the formatting engine, this is what we managed to do:
Preferences | Editor | Code Style | Swift | Wrapping and Braces | Ternary conditional operation
Preferences | Editor | Code Style | Swift | Wrapping and Braces | Ternary conditional operation
With CLion, we have not only general C / C ++ support, but also general Swift support. For a long time, the plugin, which adds support for SPM projects in CLion, used CMake as a design model. This year they decided that it was no longer possible to live like this - it was inconvenient to use, and they supported the SPM directly. Now you can work like this:
It turned out really well, it remains only to refine the integration with the tests. And considering the fact that CLion has the functionality of WebStorm for editing HTML / JavaScript, you can work with databases in the same way as in DataGrip , there is a Docker plugin and much more, we see that now you can still write backends on Swift in it :
No, we are not planning to work with SourceKit-LSP yet. The reason is simple: and so almost everything is that he carries with him (and that which still does not carry, too).
Finally, we fixed the problems with highlighting and autocompletion for classes with the same name connected to different targets in the project. Navigation also plan to fix.
Previously, when changing the signature in C / C ++, AppCode lost the default values of the arguments - and now it processes them correctly:
Normally formatted macro substitutions in Quick Documentation ( F1
):
In AppCode, all comments of the form //FIXME
/ //TODO
can be quickly viewed in ⌘6
. Here you can also set templates for your messages, which is convenient:
Now we have added support for multi-line TODOs for Objective-C / C / C ++ - it’s enough for each line except the first to add an indent:
Fixed problems when renaming constructs with swift_name
in Objective-C and enumerations in Swift / Objective-C.
Fixed friezes when invoking dialogs related to running tests, such as Run Configurations with test configurations.
AppCode learned how to debug iOS extensions - just like Xcode does:
Fixed autocompletion in the debugger console for Swift (for Objective-C / C / C ++ everything worked anyway). All supporters of p
/ po
and expression
happy, the others, as before, enjoy Evaluate Expression ( ⌥F8
):
We often hear at conferences a request to provide materials on migration from Xcode to AppCode, about what features the IDE needs to know first and foremost. During the release, we took the first major step in this direction - we added a part for Swift to the IDE Features Trainer. The essence is simple - we install the plugin, open the lessons, follow the instructions and see with simple examples what opportunities there are, how to use them, and where to find them. We recommend everyone to pass - even if you have been using IDE for a long time. With high probability, something new and useful will still be found :).
Combined Search Everywhere, Go to Class / File / Symbol / Action:
Now, any configuration can be launched by double pressing ⌃:
Or open a project by typing open
.
Completely redesigned the section with plug-ins in the IDE:
Now we can work with Git submodules and conveniently show pull requests with Github:
Now it is - both for the editor and for the IDE (can be selected in the Preferences | Appearance & Behavior | Appearance
):
We plan to dedicate the next release entirely to fixing problems. The exception is support for new versions of Swift. In general, more stability, better auto-completion with navigation and backlighting, less interference with work.
That's all! As always, download - here , bugs - to the tracker , ask general questions right here.
Source: https://habr.com/ru/post/432058/
All Articles