Skip to content

Welcome 😊, Visual Xcode shortcuts which will help to speed up your development 🚀. #iOS #Swift #Xcode #Shortcut

Notifications You must be signed in to change notification settings

Hassan1Hr/Xcode-Shortcuts

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 

Repository files navigation

Xcode-Shortcuts

1. Add Documentation To Your Code
      - Put cursor on name or method and press

(Cmd + Option + /) ************************* (⌘ + ⌥ + /)

Tip1

2. Quick Open
      - This shortcut will bring up the Open Quickly text box. You can use the text box to search by filename, method name, class name, etc. Just hit ↩ on the desired result to open its respective file on the currently active editor.

(Shift + Cmd + o) ************************* (⇧ + ⌘ + o)

Tip2

3. Opening a file manually in the assistant editor
      - First search for your file using (Shift + Cmd + o) and In order to open a destination file in the secondary editor with the same Assistance editor you can do it using.

(Option + Enter) ************************* (⌥ + ↩)

Tip22

4. Fix next issue
      - Sometimes hard to manually find the issue in the Xcode. We can simply jump to the actual error and once we jump to the error again use this command to show the error in detail.

(Ctl + Cmd + ') ************************* (⌃ + ⌘ + ')

Tip19

5. Refactor All In Scope
      - Refactoring is inevitable. That makes editing variables and methods in the scope a crucial tool. The following shortcut lets us edit all in scope together at the same time.

(Ctrl + Cmd + E) ************************* (⌃ + ⌘ + E)

Tip9

6. Find call hierarchy
      - This shortcut will open the Call Hierarchy view to show any places in your code that call the specified method, as well as any methods that call those methods in turn, and so on.

(Shift + Ctl + Cmd + H) ************************* (⇧ + ⌃ + ⌘ + H)

Tip32

7. Re-Indent Code
      - The simple way to format your code. For the single line OR Multiple lines.

(Ctrl + I) ************************* (⌃ + I)

Tip4

8. Lookup the view hierarchy
      - To look out the view structure or the hierarchy from the Xib or Storyboard and to find out its super view which view 's we can get using.

(Ctrl + Shift + Click) ************************* (⌃ + ⇧ + Click)

Tip18

9. Open dependency in the assistant editor
      - When you are working with Xib or storyboard you will require to open the view controller, In order to open a destination file in the Secondary editor with the same Assistant editor, you can use.

(Ctl + Option + Cmd + Enter) ************************* (⌃ + ⌥ + ⌘ + ↩)

Tip21

10. Add and Remove Breakpoints
      - Add and Remove breakpoints.

(Cmd + \) ************************* (⌘ + \)

Tip5

11. Disable/Enable all breakpoints
      - When you want to enable or disable the breakpoints throughout the Xcode workspace you can do it using.

(Cmd + Y) ************************* (⌘ + Y)

Tip23

12. Jump to a Line
      - Jumps to a code line.

(Cmd + L) ************************* (⌘ + L)

Tip6

13. Show Library
      - When used in the source editor, this shortcut will show a library of code Snippets (First you have to create snippets then it will bring up), image assets, and color assets. On the other hand, when used in the storyboard, it will show a library of UI objects, image assets, and color assets.

(Shift + Cmd + L) ************************* (⇧ + ⌘ + L)

Tip11ii

14. Jump to defination
      - To directly jump to a definition, you can combine

(Ctrl + Cmd + Click) ************************* (^ + ⌘ + Click)

Tip8

15. Jump to file
      - It opens a jump bar from where you can search the desired file and you jump directly to it.

(Ctrl + 5) ************************* (⌃ + 5)

Tip31

16. Jump to Method
      - It opens a jump bar from where you can search the desired method and you jump directly to it.

(Ctrl + 6) ************************* (⌃ + 6)

Tip3

17. Search Documentation
      - Put a cursor on text or select the text then jump to the apple documentation using.

(Ctrl + Option + Cmd + /) ************************* (⌃ + ⌥ + ⌘ + /)

Tip17

18. Create new tab
      - It will create a new tab, simply work with the multiple tabs.

(Cmd + T) ************************* (⌘ + T)

Tip10

19. Switching Tabs
      - Tab is one of the most commonly used features in Xcode. Using this shortcut allows you to switch tabs from left to right.

(Ctl + Tab) ************************* (^ + ⇥)

Tip16

20. Close Tab
      - While working with the multiple tabs you can use this shortcut to close your current tab.

(Shift + Cmd + W) ************************* (⇧ + ⌘ + W)

Tip12

21. Show hide code review
      - Sometimes you might need to have a quick look on the changes you have made on your code. Use this shortcut to quickly switch to code review mode and have an overview on what you have changed, once done, just hit the shortcut again to switch back to you normal source editor mode.

(Shift + Option + Cmd + Enter) ************************* (⇧ + ⌥ + ⌘ + ↩)

Tip24

22. Commit Changes
      - When we are working with Git, bitbucket, or any source control tool we can directly commit over changes using.

(Option + Cmd + C) ************************* (⌥ + ⌘ + C)

Tip11

23. Reveal in Projet Navigator
      - Reveal file in projet navigator using.

(Shift + Cmd + J) ************************* (⇧ + ⌘ + J)

Tip13

24. Open Preferences
      - Open your Xcode preferences to easily access your apple account, set up your Xcode preference, access the derived data path, and many more using.

(Cmd + Comma(,)) ************************* (⌘ + ,)

Tip14

25. Split curent file
      - When you want to split your current file within the same tab you can do using.

(Option + Cmd + ,) ************************* (⌥ + ⌘ + ,)

Tip20

26. Create a new group
      - Select your folder then use the shortcut to create a group. At a time a single group will be created.

(Ctl + Option + Cmd + N) ************************* (⌃ + ⌥ + ⌘ + N)

Tip15

27. Left panel (navigator) tab switch
      - Switch between the different navigator from Project navigators to Report navigator using.

(Cmd + (1-9)) ************************* (⌘ + (1-9))

Tip25

28. Hide left panel (navigator)
      - Hide the navigator using.

(Cmd + 0) ************************* (⌘ + 0)

Tip28

29. Right panel (inspector) tab switch
      - Switch between the different navigators from File inspector to Connection inspector using.

(Option + Cmd + (1-7)) ************************* (⌥ + ⌘ + (1-7))

Tip27

30. Hide right panel (inspector)
      - Hide the inspector using.

(Option + Cmd + 0) ************************* (⌥ + ⌘ + 0)

Tip29

31. Search for lines of text in your files (project)
      - Search your text with multi kinds of filters like Containing, Matching word, Starting with or Ending with using.

(Cmd + Shift + F) ************************* (⌘ + ⇧ + F)

Tip26

32. Open schema selection
      - When you are required to switch between the schema (Control + 0) open the scheme chooser. Select the scheme you want to run with the arrow keys and simply hit the return key to choose the schema.

(Ctl + 0) ************************* (⌃ + 0)

Tip30

Feedback

If you have any feedback, please reach out to me at [email protected]

Buy Me A Coffee

#Xcode #iOS #Swift

About

Welcome 😊, Visual Xcode shortcuts which will help to speed up your development 🚀. #iOS #Swift #Xcode #Shortcut

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published