43
40 Powerful Shortcuts of Xcode 6.x kimbs.cn

40 Powerful Shortcuts of Xcode 6.x

  • Upload
    ho-kim

  • View
    199

  • Download
    3

Embed Size (px)

Citation preview

Page 1: 40 Powerful Shortcuts of Xcode 6.x

40 Powerful Shortcuts of Xcode 6.x

kimbs.cn

Page 2: 40 Powerful Shortcuts of Xcode 6.x

command + ,

• Account settings

• Turn off the boring building sound

• Code color

• Indentations

• etc.

Page 3: 40 Powerful Shortcuts of Xcode 6.x

option + click (file)

• Open the file in assistant editor

• We have to compare code very often!

Page 4: 40 Powerful Shortcuts of Xcode 6.x

command + enter

• Show standard editor

• But most of time we use it to close the assistant editor

Page 5: 40 Powerful Shortcuts of Xcode 6.x

click + click (file)

• Open and edit in a separate window

• Very useful if you have two or more screens

Page 6: 40 Powerful Shortcuts of Xcode 6.x

command + shift + t

• Open a new window with current state

• I generally use one for design and another for coding

Page 7: 40 Powerful Shortcuts of Xcode 6.x

command + n

• Create new file(s)

• The most commonly used

Page 8: 40 Powerful Shortcuts of Xcode 6.x

command + option + a

• Add files to current project

• We use it very often especially for those have many assets and images

Page 9: 40 Powerful Shortcuts of Xcode 6.x

command + o

• Open a file

• Open the UI designs is what I most commonly used

Page 10: 40 Powerful Shortcuts of Xcode 6.x

command + shift + o

• Search and open quickly

• I call it the “Xcode Spotlight”, the great tool for reference and learning

Page 11: 40 Powerful Shortcuts of Xcode 6.x

command + click (file)

• Go quickly to the definition of the selection

Page 12: 40 Powerful Shortcuts of Xcode 6.x

option + click (file)

• Open the quick short document

Page 13: 40 Powerful Shortcuts of Xcode 6.x

command + shift + s

• Duplicate file

• Fast copy and create another class

Page 14: 40 Powerful Shortcuts of Xcode 6.x

control + command + s• Create a snapshot

• It helps to prevent small changes that break your current state

Page 15: 40 Powerful Shortcuts of Xcode 6.x

command + :

• Show spelling and grammar

• Useful for perfectionist

Page 16: 40 Powerful Shortcuts of Xcode 6.x

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)

Page 17: 40 Powerful Shortcuts of Xcode 6.x

control + command + space

• Choose special characters

• Sometimes we do need fun!

Page 18: 40 Powerful Shortcuts of Xcode 6.x

command + 1-8

• Switch navigators

• Back to project navigator (Command + 1) is most commonly used

Page 19: 40 Powerful Shortcuts of Xcode 6.x

option + command + 0-6

• Utilities switching

• The “trigger” (option + command + 0) is what we use everyday.

Page 20: 40 Powerful Shortcuts of Xcode 6.x

command + f

• Find in file

• You must be very familiar with it

Page 21: 40 Powerful Shortcuts of Xcode 6.x

option + command + f

• Find and replace in file

Page 22: 40 Powerful Shortcuts of Xcode 6.x

command + shift + f

• Find in project

Page 23: 40 Powerful Shortcuts of Xcode 6.x

command + option + shift + f

• Do not use it in most of the time!

• Usually we use Refactor Rename instead

Page 24: 40 Powerful Shortcuts of Xcode 6.x

control + command + <- / ->

• Go forward or back in the editor

• But I prefer to use two fingers swipe

Page 25: 40 Powerful Shortcuts of Xcode 6.x

command + L

• Jump to line

• It’s used in every kind of IDE!

Page 26: 40 Powerful Shortcuts of Xcode 6.x

esc

• Show completions

• We can also use “control + space”

Page 27: 40 Powerful Shortcuts of Xcode 6.x

control + i

• Re-indent

• Make the perfect indentation automatically

Page 28: 40 Powerful Shortcuts of Xcode 6.x

command + [ / ]

• Shift left and shift right

• Use them to move around the block

Page 29: 40 Powerful Shortcuts of Xcode 6.x

option + command + [ / ]

• Move lines up or down

• I use it to move the block up and down

Page 30: 40 Powerful Shortcuts of Xcode 6.x

command + /

• Comment selection

• (Un)comment the lines as we did on every IDE

Page 31: 40 Powerful Shortcuts of Xcode 6.x

option + command + <- / ->

• Fold and unfold the blocks

• I prefer to do this directly on the editor

Page 32: 40 Powerful Shortcuts of Xcode 6.x

shift + option + cmd + <- / ->

• Fold / unfold methods and functions

• They help me to handle the big class!

Page 33: 40 Powerful Shortcuts of Xcode 6.x

command + r

• Build and run your project

Page 34: 40 Powerful Shortcuts of Xcode 6.x

command + b

• Build your project

• Sometimes we just want to build and see, without running

Page 35: 40 Powerful Shortcuts of Xcode 6.x

control + command + r

• Run without building

• Building is a pain especially for big project

• Sometimes we just want to “see it” again

Page 36: 40 Powerful Shortcuts of Xcode 6.x

shift + command + k

• Clean the project

• We use it very often

Page 37: 40 Powerful Shortcuts of Xcode 6.x

command + y

• Activate and deactivate the breakpoints

• Those breakpoints are too small to click!

Page 38: 40 Powerful Shortcuts of Xcode 6.x

How about debug?

• Use the debug panel directly!

Page 39: 40 Powerful Shortcuts of Xcode 6.x

shift + command + 0

• Documentation and API Reference

• We should keep updating the docs and learning everyday!

Page 40: 40 Powerful Shortcuts of Xcode 6.x

shift + command + 1

• Show welcome to Xcode

• It’s not just say “hello”! But to create or open the project

Page 41: 40 Powerful Shortcuts of Xcode 6.x

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

Page 42: 40 Powerful Shortcuts of Xcode 6.x

– Philip Sideney

“All is but lip-wisdom that wants experience.”

Page 43: 40 Powerful Shortcuts of Xcode 6.x

Now go and practise!