Today we are going to share with you another 5 favourite AppCode shortcuts from a well-known iOS community member. This series of blog posts, in which we ask well-known personalities in the iOS development world who uses AppCode a simple question “What are your 5 favorite AppCode shortcuts?”, started with Orta Therox and Paweł Dudek. And today we are happy to present you answers from Krzysztof Zabłocki!
Let us now introduce you to 5 favorite shortcuts from Krzysztof. We’ll also point out these shortcuts as they come in the Default keymap.
I. Syntax Aware Selection (
I use this quite a lot when refactoring, it makes it much easier to extract method or variable and enables me to work effectively without using a mouse.
By the way, the same shortcut was mentioned by Paweł Dudek as well.
II. Show usages (
Can’t live without it, gone are days of using cmd+shift+f to find references in Xcode, show usages is context aware and so much better.
III. Quick Fix (
I write my code TDD way so this is must-have.
Paweł Dudek was also mentioning this shortcut in TDD context.
IV. Rename (
⇧F6) and Override/Implement (
Both rename and override are very common usage case for me, I constantly refactor my code and having confidence to do so is really helpful.
V. Introduce Variable (
⌥⌘V) / Extract Method (
Must have for being able to perform constant refactorings of my code.
P.S. And a bit more…
For navigating and learning my way around new code:
⌥⌘B-> Go to definition(s), which for me is showing all subclass implementations:
⌥⌘N-> Inline, which makes it easier to understand bigger piece of code.
⇧⌘T-> Jump to test, which is very helpful.
That’s it! Thank you Krzysztof for sharing this with us.
Develop with pleasure,
The AppCode Team