This is enabled by default but can be easily switched off in Preferences | Editor | General | Smart Keys. First, smarter Backspace key now removes indents and white spaces according to your code style settings: This EAP build brings a lot of small editor enhancements that all together provide users with better development experience. To use it, enable Manual Order in the context menu. We’ve also followed up on one of the top voted users’ requests, and now you can sort files in project view “like in Xcode”. To tell if a setting relates to the current project, note the icon to the right of the setting’s name: Project-specific settings and IDE settings are now merged together. Settings have been rearranged, and the overall structure is clearer and more logical. When you run this EAP build, you’ll definitely notice how the Preferences dialog has been redesigned. Inline Variables View is enabled by default, but can be easily switched off in Debug tool window | Settings menu | Show Values in Editor. It’s intended to show you the variable values right in the editor (next to variable declaration): In this EAP we add a new helpful feature: Inline Variables View. Debugging is one of the steps where our IDEs can assist in a smart way. We are committed to helping developers be more productive in all stages of their development process. We’ll continue to enhance Swift functionality to deliver more goodies for you to use in the following updates. While Swift classes are resolved correctly in Objective-C code, usages of methods are not we plan to improve this in the nearest updates.External parameter names, shorthand names and tuple element names are not resolved correctly yet.Code formatter for Swift is not ready yet.Completion is now working only for the keywords.AppCode doesn’t provide you with compile warnings in the editor.There are still a few important limitations in the current Swift functionality: Hence, you can use completion, navigation and find usages functionality in these cases. In this EAP build, AppCode supports Objective-C-to-Swift resolve, which means that Swift classes can be resolved in Objective-C code. Swift was created to be interoperable and compatible with Objective-C, so Swift API can be used in Objective-C and vice versa. In many dialogs now you can see a Help button that redirects you to the appropriate page in the web help. By the way, web help is integrated into the IDE. Check them in Navigate menu or read the detailed descriptions in AppCode web help. Navigate to declaration of symbol at caret ( Cmd+B).ĪppCode provides more navigation options that are language-independent and thus work regardless of the Swift or Objective-C languages used in your project.Navigation options help you switch quickly between parts of your code to be more productive. Since this is a EAP build external function parameter names (as well as shorthand names) are not resolved and thus are not highlighted as usages or renamed when used outside the function body. With 3.1 EAP we bring the most widely used Rename refactoring to Swift code! Rename ( Shift+F6) variables, constants, functions, type names and classes and be sure AppCode updates all the usages across the entire code base for you: You can group the usages there by your preferred criteria, for example by directory:ĪppCode is known for its safe, accurate and reliable automated refactorings that allow you to modify and improve your code easily. If you are interested in the full list of usages, press Alt+F7 to have AppCode find all usages for you and collect them in a separate window. If you simply place a caret on a symbol in your Swift code, AppCode highlights all the usages within the current file and also marks them all in the right gutter: Find Usages goes first! It helps you quickly find all pieces of code referencing a symbol at the caret, no matter if the symbol is a class, function, variable, constant, or type. Now you can write some code, autocompletion for the language keywords will assist you with that.Īfter implementing the most part of resolve in Swift code, we are able now to provide you with smart features. Start with creating a Swift-based project or just a new Swift file (select New | File from Xcode Template…) in the currently existing project. So, let’s have a look at what’s already available in this EAP. Since then we’ve implemented resolve in Swift code and built a couple of useful features on top of that. This summer, soon after the Apple event, we announced basic editing and highlighting for Swift code. Well, we kind of feel like a Gulliver now, as we take a big step forward and start with Swift support in AppCode! Most of us have read or at least heard of Gulliver’s Travels by Jonathan Swift.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |