5 favorite AppCode shortcuts by Orta Therox
iOS community is diverse and rapidly growing. Like in other communities, there are members whose experience and knowledge are tremendous. Some of them use AppCode as an IDE for their iOS/OS X development, and as experts know a lot of tricks and productivity tips. In this series of blog posts we’d like them to share their experience with you.
As you may know, AppCode relies on a keyboard-centric approach to help you focus on code and raise your productivity. It has keyboard shortcuts for almost every feature, action and command. You can use one of the pre-defined keymaps or customize them as you wish.
Recently we’ve asked a few community members using AppCode in their everyday work a very simple question: What are your 5 favorite AppCode shortcuts? Here is the answer from one of the most well-known personalities in the iOS development world, Orta Therox.
Orta on Twitter: @orta.
Orta on GitHub: github.com/orta.
“I use a heavily modified version of the Xcode Keymap within AppCode. My first mentor was credited in the original book for TextMate, so I’m highly influenced in my expectations for keys based on TextMate. My favorite key commands all are about getting around code nimbly, and making quick edits. Because of this they are a little bit mundane, but these are solid foundations for navigation and exploring code bases. There are people that believe in the defaults, and then there are the tinkerers who can’t use anyone else’s computer. I’m the latter.
For the last two years I’ve been keeping track of my own custom keymap settings in a repo on my GitHub. If any of the setup for these 5 resonate with you, you can grab the full set and a few more there.”
Let us now introduce you to Orta’s 5 favorite shortcuts. We’ll also point out these shortcuts as they come in the Default keymap.
I. Refactor This (
My favorite key combo is the one for Refactor This, which I have assigned to ⌥ + T. It presents a list of refactorings that can be ran from the current cursor, reminding you of all the current options.
II. Search Everywhere (
Next up is Search Everywhere which I have assigned to ⌘ + T. It’s a good job this is shown when you have no tabs open. I still have a mental modal that this is “Open Class”, but being able to write down almost anything I can name within a codebase and instantly jump to it means I’m often pleasantly surprised. The mapping for this command is a TextMate-ism.
III. Navigate with the File Structure (
Then Navigate with the File Structure which I have assigned to ⌘ + ⇧ + T. If I’ve used Search Everywhere to get into a file, I can then use File Structure to dig around inside and see what’s hiding in the file. It pops up a menu that you can then type to filter through until you tap enter to jump to that symbol in code. The mapping for this command is a TextMate-ism.
IV. Find Usages (
Then Find Usages, which I have assigned to ⌘ + ^ + F. I use this as an improved Find All and so it has a similar mapping. It makes it easy to see the communication patterns of code upon request.
V. Rename (
Finally, Rename in my build is ⌘ + ^ + E. This is a shortcut to Refactor This + ⏎. It matches Xcode’s Edit All In Scope, but provides a deeper refactoring as it can go outside of the current scope and make changes to anything that can be named, not just inline variables.
That’s it! Thank you Orta for sharing this with all of us.
Develop with pleasure,
The AppCode Team
Subscribe to Blog updates
Thanks, we've got you!
Writing Code Documentation in AppCode
Code documentation can save you a lot of time and headaches. On the other hand, it also takes a lot of effort to write and maintain it. In this article, we will look at the AppCode features that can help you create detailed and well-structured code documentation and keep it updated after code refact…
Polish Your Code with AppCode’s Inspections and Intentions
AppCode is constantly analyzing your code to find parts that can be improved. It provides sets of code inspections and intention actions for each supported language for this exact purpose. Inspections locate unused or redundant code, syntax errors, probable bugs, spelling mistakes, obsolete or redun…
Navigation in AppCode
Navigating through files and source code, especially in complex projects, can eat up a lot of time, which is why it is essential to learn how to move around quickly in your IDE. AppCode provides plenty of navigation features that can help you move faster. In this blog post, we’ll take a look at some…
Server-side Swift in AppCode
In this short article we’ll take a look at various AppCode features that are useful for server-side Swift development, as now you can open standalone SPM projects in AppCode on macOS. Check out and open the project On the Welcome screen, click the Get from VCS button and enter the address of the Fe…