![]() Each individual refactoring can also be called up with its own shortcut. To see what refactorings can be applied to the currently selected code, use Refactor This Ctrl+Alt+Shift+T. AppCode is much more about using keyboard shortcuts for different actions because they can help you code more efficiently: In Xcode, most code generation actions are available via Ctrl+Click, as are refactorings, code folding options, and others. In AppCode, you can use Search Everywhere (double Shift) for the same purpose, or use Go to by Number/Mnemonic Ctrl+N, Go to Symbol Ctrl+Alt+Shift+N, or Go to File Ctrl+Shift+N as appropriate. In Xcode, Open Quickly ⇧⌘O lets you navigate to a file, symbol, or class. To use Dash instead of the bundled browser, enable it in Settings | Editor | External Documentation | Dash and use the Shift+F1 shortcut. It also allows you to use external documentation browsers such as Dash. You can configure specific code style settings separately for each language supported by AppCode in Settings | Editor | Code style: DocumentationĪppCode fetches the documentation from Xcode docsets. The Reformat code action takes into account many more code style settings than the Auto-indent lines action does, and it can be applied to a specific directory, file, or the whole project. Reformat code in the current file or in the whole project using Ctrl+Alt+L. ![]() In Xcode, you format code with ⌃I (to reindent it), and this works only for the current file. All the built-in templates can be found in Settings | Editor | Live Templates. In AppCode, such snippets are called live templates and they allow more interaction, such as scripting the placeholder values, setting default values depending on the context, and more. In Xcode, you can configure code snippets with placeholders for template values. Set your cursor anywhere in the code and press Ctrl+W / Ctrl+Shift+W. Structural selection: this allows you to select not text but code, while taking advantage of the code hierarchy. Press Alt+Shift+Insert to exit this mode. This way you can achieve a behavior similar to Xcode’s Edit all in Scope.Ĭolumn selection: press Alt+Shift+Insert, select several lines, and edit the text as columns. Next, you can change them simultaneously. Multiple selections: press Ctrl+Alt+Shift+J to select all occurrences of the currently selected text, or select the text and press Alt+J to select its occurrences one by one. AppCode also has several specific code selection mechanisms which you can adapt to edit code faster: Of course, you can select code with the mouse as usual. Lear more about them in the Code completion section. There are several additional completion types that can help you code faster. Can be changed in Settings | Editor | General | Code Completion
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |