prog88
  • Welcome to prog88
  • Software Engineering
    • [TechSpec] Personal Macs
    • MOBILE DEVELOPMENT
      • iOS OSX
        • Swift
        • SwiftUI
        • UIKit ~ SwiftUI (2.0)
    • MOBILE TOOLS
      • iOS Simulator
      • [CS] Xcode
    • UNIX / OSX ZONE
      • [Tools] Miscellaneous
      • App Package Manager
      • SSH
      • GPG
      • Terminal & Touch ID
      • [CS] GIT
    • NETWORKING
      • HTTP [RFC2616 : 7230-7239]
    • EDITING SYNTAX
      • [CS] Markdown
  • COOKING ZONE
    • DESSERTS BOOK
      • Almond Tofu - ๆไป่ฑ†่…
      • Daifuku mochi - Creamy Mango
    • BAKERY BOOK
      • Fondant au chocolat
  • Gaming zone
    • WWZ - How to Survive [Guide]
Powered by GitBook
On this page
  • Search
  • Editing
  • Tabs
  • Navigation
  • Navigator (left side panel)
  • Utilities (right side panel)
  • Debugging
  • Debugging & Run
  • References

Was this helpful?

  1. Software Engineering
  2. MOBILE TOOLS

[CS] Xcode

(cheat sheets) 2020/04/26 by jean tran

I wanted to share some of Xcode common shortcuts, that could be time-saver especially while main tasks is coding.

Search

Cmd + F                     Find in File
Cmd + Option + F            Find & Replace in File
Cmd + Shift + F             Find in Project
Cmd + Option + Shift + F    Find & Replace in Project

Editing

Cmd + Option + ENTER        Show Assitant Editor
Cmd + ENTER                 Hide Assitant Editor
Ctrl + SPACE or ESC         Toggle Completions
Cmd + ]                     Indent Section
Cmd + [                     Outdent Section
Ctrl + i                    Fix Indentation
Cmd + /                     Comment / Uncomment
Cmd + Option + [            Move Line Up
Cmd + Option + ]            Move Line Down

Tabs

Cmd + T                     New Tab
Cmd + }                     Previous Tab
Cmd + {                     Next Tab

Navigation

Cmd + Shift + O             Quick Open
Cmd + J                     Focus to Editor
Cmd + Ctrl + UP             Next Counterpart
Cmd + Ctrl + DOWN           Previous Counterpart
Cmd + Ctrl + RIGHT          Next Recent File
Cmd + Ctrl + LEFT           Previous Recent File
Cmd + click                 Defination of Symbol
Cmd + L                     Go to Line
Cmd + Option + LEFT         Fold Section
Cmd + Option + RIGHT        Unfold Section

Navigator (left side panel)

Cmd + 0                     Show /Hide 
Cmd + 1-8                   Switch tabs 
Option + click              Open Assistant Editor
Shift + Option + click      Decide where to Open
double click                Open in New Window

Utilities (right side panel)

Cmd + Option + 0            Show / Hide
Cmd + Option + 1-9          Go to Tab

Debugging

Cmd + Shift + Y             Toggle Debug Area
Cmd + '                     Next Issue
Cmd + "                     Previous Issue
Cmd + \                     Add / Remove Breakpoint
Cmd + Y                     Active / Deactive Breakpoints
Cmd + K                     Clear Console

Debugging & Run

Cmd + B                     Build
Cmd + R                     Run 
Cmd + .                     Stop
Cmd + Shift + B             Analyze
Cmd + U                     Test 
Cmd + Shift + K             Clean
Cmd + opt + Shift + K       Deep Clean

References

PreviousiOS SimulatorNextUNIX / OSX ZONE

Last updated 5 years ago

Was this helpful?

WEBSITE:

DOCUMENTATION:

https://developer.apple.com/xcode/
https://developer.apple.com/documentation/xcodekit