Xcode shortcuts to boost your iOS development speed and productivityπ¨π»βπ»
Powerful keys to know for every developer to increase productivity.
As a developer, we spend most of the time on Xcode IDE. When I started my development career, I wondered how my senior work much faster than me. When I asked him how can you do that, he replied that itβs βmagicβ. But when I observed them, they frequently used some shortcuts. And I predominantly used the mouse instead of keyboard shortcuts, which inspired me to discover some shortcuts that boost my development life.
The purpose of writing this blog is to share knowledge with every iOS engineers and help them to boost their speed of productivity.
One more thing I want to convey that this blog helps every type of developer whether he is a junior, senior, or pro developer.
I have summarised 3 types of shortcuts into this blog
- Basic Shortcuts
- Intermediate Shortcuts
- Pro(Advance) Shortcuts
So letβs start to exploreβ¦
1. Basic Shortcuts π¨π»βπΌ
List of the most common shortcuts used in Xcode:
- Build Project: β + B
(Command + B) - Run Project: β + R
(Command + R) - Test Project: β + U
(Command + U) - Stop Running Project: β +.
(Command + . (Dot)) - Clean Project: β + β§ + K
(Command + Shift + U) - Clean the build folder: β + β§ + β₯ + K
(Command + Shift + Option + K) - Open quickly: β§ + β + O
(Shift + Command + O) - Code completion: β + Space
(Control + Space)
Workspace(Xcode IDE) Shortcuts
List of the most common workspace shortcuts used in Xcode:
- Show project navigator: β + 1
- Show the source control navigator: β + 2
- Show the symbol navigator: β + 3
- Show the find navigator: β + 4
- Show the issue navigator: β + 5
- Show the test navigator: β + 6
- Show the debug navigator: β + 7
- Show the breakpoint navigator: β + 8
- Show the report navigator: β + 9
- Show the file inspector: β₯ +β + 1
- Show the history inspector: β₯ +β + 2
- Show the quick help inspector: β₯ +β + 3
- Show the identify inspector: β₯ +β + 4
- Show the attribute inspector: β₯ +β + 5
- Show the size inspector: β₯ +β + 6
- Show the connection inspector: β₯ +β + 7
2. Intermediate Shortcuts π¨π»βπ»
1. Open quickly inside the project
2. Assistance Editor
3. Auto documentation
4. Objects Library
5. Comment specific line or block: β + / (Command + Right Slash)
6. Fold/Unfold class or method body: β₯ + β + β OR β₯ + β + β
(Option + Command+ Left arrow OR Option + Command+ Right arrow)
7. Reorder statements: β₯ + β + [ OR β₯ + β + ]
(Option + Command+ Left square bracket/ Right square bracket)
(Option + Command+ Left square bracket / Right square bracket)
8. Indent Code: β + [ OR β + ]
(Command+ Left square bracket / Right square bracket)
(Command+ Left square bracket / Right square bracket)
9. Add and Remove breakpoints: β + \ (Command+ Left slash)
10. Enable/Disable all breakpoints: β + Y (Command+ Y)
11. Show/hide completions: β OR β + Space (Escape) OR (Control + Space)
(Escape) OR (Control + Space)
12. Jump to Definition: ^+β+J OR ^+β+Click
(Control + Command+ J) OR (Control + Command+ Click)
(Control + Command+ J) OR (Control + Command+ Click)
3. Pro(Advance) Shortcuts π
1. Find any method or function within the file: β+6 (Control + 6)
2. Edit/Rename variable/method name all in the scope: β + β + E (Control + Command+ E)
3. Fix all auto suggestion/error in the code: ^+β₯+β+F
(Control +Option + Command+ F)
(Control + Option + Command + F)
4. Find text in the project: β§+β+F (Shift + Command + F)
5. Find method call hierarchy: β§ + ^ + β + H
(Shift + Control + Command+ H)
6. Jump to Line: β + L (Command + L)
7. Multiple cursor: β§ + ^ + Click (Shift +Control + Click)
Conclusion
Iβm sure the above shortcuts are going to help you a lot but itβs hard to memorize every shortcut in one go so please be patient and try to adopt a couple of shortcuts in your daily development routine and one day you will be the Ninja developer.
Hope these tips helped you out and you learned something new today, if you enjoyed reading this article be sure to throw me a couple of claps π.
Let me know what you think and share your favorite Xcode shortcuts with us in the comments.