Is there a [Go to file…]?

后端 未结 7 647
挽巷
挽巷 2021-01-29 17:46

In modern IDEs, there is a keyboard shortcut to open a file by typing its name without putting your hand on the mouse. For example:

  • Eclipse: Cmd|

7条回答
  •  清酒与你
    2021-01-29 18:33

    Updated to Xcode 9.3

    This is the quick guide for all the Xcode Keyboard Shortcuts:

    • Comment/ Un-comment code: ^ + /

    • Undo: + Z

    • Redo: + + Z

    • Shift Right or Left: + [ | ]

    • Indent: + I

    • Navigate to the beginning or end of line: + |

    • Navigate word by word left or right of line: + |

    • Bring up possible auto-completion choices: esc

    • Jump To definition: + Click

    • Put a breakpoint to a line: + \

    • Move line up or down: + + [ | ]

    • Find in File: + F

    • Find & Replace in File: + + F

    • Find in Project: + + F

    • Find & Replace in Project: + + + F

    • New Tab: + T

    • Next Tab: + + {

    • Previous Tab: + + }

    • Open Quickly: + + O

    • Move Focus to Editor: + J

    • Navigate to Next File in Recently Visited: + +

    • Navigate to Previous File in Recently Visited: + +

    • Show present file in Editor: + + J

    • Fold/ Unfold code: + + |

    • Fold/ Unfold all methods/functions: + + + |

    • Fold/ Unfold all multiple line comments: + + + |

    • Font Size Increase/Decrease: + + | -

    • Go to line number: + L

    • Show Assistant Editor: + + Return

    • Hide Assistant Editor: +

    • Toggle Completions: + Space

    • Edit All in Scope: + + E

    • Show / Hide Navigator: + 0

    • Switch Tabs: + 1 - 8

    • When clicking a File in Navigator open in

    • Assistant Editor: + Click

      • New Window: Double click
      • Decide where to open: + + Click
    • Toggle Debug Area: + + Y

    • Next Issue: +

    • Previous Issue: +

    • Toggle Breakpoints: + Y

    • Clear Console: + K

    • Show / Hide Utilities: + + 0

    • Switch Tabs Utilities: + + 1 - 9

    • Build: + B

    • Run: + R

    • Stop: + .

    • Analyze: + + B

    • Test: + U

    • Clean: + + K

    • Help for Clicked Symbol: + click

    • Documentation for clicked Symbol: + Double click

    • Show Documentation: + + 0

    • Documentation for Selection: + + + /

    • Move Focus to Filter in Navigator: + + J

    • Move Focus to Filter in Utilities: + + L

提交回复
热议问题