Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does Xcode 4 have keyboard shortcuts for Replace & Find Next / Previous?

Tags:

Does XCode 4 have keyboard shortcut for the two menu options: Edit > Find > Replace and Find Next / Previous?

If not, (1) why not, (2) how do I create them, and (3) which key combinations do you recommend for the shortcuts?

like image 734
ma11hew28 Avatar asked May 07 '11 14:05

ma11hew28


People also ask

What is the keyboard shortcut for replace?

Tips: You can also open the basic Find and Replace pane with the keyboard shortcut CONTROL + H. When you replace text, it's a good idea to select Replace instead of Replace All.

Which keyboard shortcuts opens the Replace tool?

Use the shortcut Ctrl+H or navigate to Home>Editing>Replace to reach the Find and Replace dialog box.

How do I redo in Xcode?

Press (Command[⌘] + Z) followed by (Shift[⇧] + Command[⌘] + Z) to execute undo and redo actions.


2 Answers

As for Find & Replace, they are provided by default now (version 4.2.1):

Find & Replace: Cmd + Option + F
Find & Replace in Workspace: Cmd + Option + Shift + F

like image 162
Louis Waweru Avatar answered Oct 27 '22 17:10

Louis Waweru


As for Find next/Find previous, you should be able to use standard Cmd-G and Cmd-Shift-G Mac shortcuts.

But the keyboard shortcut for Edit > Find > Replace doesn't seem to be provided by default. However, you can set up one if you go to XCode 4 Preferences (Cmd-,) and then click Key Bindings. There are options available for Replace, Replace All as well as Replace and Find Next.

like image 25
Chris Kobrzak Avatar answered Oct 27 '22 17:10

Chris Kobrzak