40 Powerful Shortcuts of Xcode 6.x

 

 

Transcript:
1. 40 Powerful Shortcuts of Xcode 6.x kimbs.cn
2. command + , • Account settings • Turn off the boring building sound • Code color • Indentations • etc.
3. option + click (file) • Open the file in assistant editor • We have to compare code very often!
4. command + enter • Show standard editor • But most of time we use it to close the assistant editor
5. click + click (file) • Open and edit in a separate window • Very useful if you have two or more screens
6. command + shift + t • Open a new window with current state • I generally use one for design and another for coding
7. command + n • Create new file(s) • The most commonly used
8. command + option + a • Add files to current project • We use it very often especially for those have many assets and images
9. command + o • Open a file • Open the UI designs is what I most commonly used
10. command + shift + o • Search and open quickly • I call it the “Xcode Spotlight”, the great tool for reference and learning
11. command + click (file) • Go quickly to the definition of the selection
12. option + click (file) • Open the quick short document
13. command + shift + s • Duplicate file • Fast copy and create another class
14. control + command + s • Create a snapshot • It helps to prevent small changes that break your current state
15. command + : • Show spelling and grammar • Useful for perfectionist
16. command + option + . • Refactor -> Rename , to rename a word in the project • I use it very often, but have to set it manually! (empty key by default)
17. control + command + space • Choose special characters • Sometimes we do need fun!
18. command + 1-8 • Switch navigators • Back to project navigator (Command + 1) is most commonly used
19. option + command + 0-6 • Utilities switching • The “trigger” (option + command + 0) is what we use everyday.
20. command + f • Find in file • You must be very familiar with it
21. option + command + f • Find and replace in file
22. command + shift + f • Find in project
23. command + option + shift + f • Do not use it in most of the time! • Usually we use Refactor Rename instead
24. control + command + <- / -> • Go forward or back in the editor • But I prefer to use two fingers swipe
25. command + L • Jump to line • It’s used in every kind of IDE!
26. esc • Show completions • We can also use “control + space”
27. control + i • Re-indent • Make the perfect indentation automatically
28. command + [ / ] • Shift left and shift right • Use them to move around the block
29. option + command + [ / ] • Move lines up or down • I use it to move the block up and down
30. command + / • Comment selection • (Un)comment the lines as we did on every IDE
31. option + command + <- / -> • Fold and unfold the blocks • I prefer to do this directly on the editor
32. shift + option + cmd + <- / -> • Fold / unfold methods and functions • They help me to handle the big class!
33. command + r • Build and run your project
34. command + b • Build your project • Sometimes we just want to build and see, without running
35. control + command + r • Run without building • Building is a pain especially for big project • Sometimes we just want to “see it” again
36. shift + command + k • Clean the project • We use it very often
37. command + y • Activate and deactivate the breakpoints • Those breakpoints are too small to click!
38. How about debug? • Use the debug panel directly!
39. shift + command + 0 • Documentation and API Reference • We should keep updating the docs and learning everyday!
40. shift + command + 1 • Show welcome to Xcode • It’s not just say “hello”! But to create or open the project
41. More editor tips • The Emacs Style: • control + f move forward • control + b back • control + p move up • control + n move down • control + a move to beginning of the line • control + e move to end of the line • control + k deletes from current position
42. – Philip Sideney “All is but lip-wisdom that wants experience.”
43. Now go and practise!

 

Cheer!

 

Posted in iOS, Training, Xcode | Tagged , | 1 Comment