Skip to content

Commit 184422c

Browse files
authored
clean up shortcut formatting
1 parent 476ab37 commit 184422c

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

README.md

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Source: [Jesse Squires](https://www.jessesquires.com/blog/2020/01/21/xcode-tip-b
3333

3434
### Quickly toggling breakpoints
3535

36-
Use `Cmd+\` to toggle a breakpoint on the current line.
36+
Use `cmd \` to toggle a breakpoint on the current line.
3737

3838
Source: [Paul Hudson](https://www.hackingwithswift.com/articles/229/24-quick-xcode-tips)
3939

@@ -113,7 +113,7 @@ Source: [Michael Tsai](https://mjtsai.com/blog/2018/03/27/nsdoublelocalizedstrin
113113

114114
### Viewing .crash files
115115

116-
In Xcode’s Organizer, in the Crashes section, you can right-click or ctrl-click on any row and choose Show in Finder. This will reveal a .crashpoint file — do a Show Package Contents and then dig in further. You will find .crash files with the full crash logs, which provide a lot more info than what you see in Organizer.
116+
In Xcode’s Organizer, in the Crashes section, you can right-click or ctrl-click on any row and choose Show in Finder. This will reveal a `.crashpoint` file — do a "Show Package Contents" and then dig in further. You will find `.crash` files with the full crash logs, which provide a lot more info than what you see in Organizer.
117117

118118
Source: [Brent Simmons](https://inessential.com/2021/03/16/the_hottest_of_all_xcode_tips)
119119

@@ -146,7 +146,7 @@ Source: [Paul Hudson](https://www.hackingwithswift.com/articles/229/24-quick-xco
146146

147147
### Customizing the file header comment and other text macros
148148

149-
Xcode allows you to customize the file header and other so-called text macros using a plist file.
149+
Xcode allows you to customize the file header and other so-called text macros using a plist file.
150150

151151
1. Create a property list file named `IDETemplateMacros.plist`.
152152
2. For every text macro you want to customize, add a new key to the plist’s dictionary.
@@ -160,8 +160,8 @@ Source: [Ole Begemann](https://oleb.net/blog/2017/07/xcode-9-text-macros/)
160160
### Improving the assistant editor
161161

162162
1. Set “Uses Focused Editor” in the Navigation preferences
163-
1. `cmd-J` to switch between panes or open new ones
164-
1. `cmd-shift-O` to open files in the currently focused pane
163+
1. `cmd J` to switch between panes or open new ones
164+
1. `cmd shift O` to open files in the currently focused pane
165165

166166
Source: [Jesse Squires](https://www.jessesquires.com/blog/2018/06/12/xcode-tip-improving-assistant-editor/)
167167

@@ -175,33 +175,33 @@ Source: [Jesse Squires](https://www.jessesquires.com/blog/2018/07/01/xcode-tip-d
175175

176176
### Jump to a specific line
177177

178-
Open the file you want. Press `Cmd+L`, type a line number and Xcode will jump directly to that line.
178+
Open the file you want. Press `cmd L`, type a line number and Xcode will jump directly to that line.
179179

180180
### Reindenting/Formatting code
181181

182-
Press `Ctrl+I` to apply Xcode's indentation and formatting.
182+
Press `ctrl I` to apply Xcode's indentation and formatting.
183183

184184
### Adding comments quickly
185185

186-
Use `Cmd+/` to toggle comments for the current line or selection. Use `Option+Cmd+/`, pressed directly before a method to have Xcode generate a documentation comment.
186+
Use `cmd /` to toggle comments for the current line or selection. Use `cmd option /`, pressed directly before a method to have Xcode generate a documentation comment.
187187

188188
Source: [Paul Hudson](https://www.hackingwithswift.com/articles/229/24-quick-xcode-tips)
189189

190190
### Jump to file in source navigator
191191

192-
Press `Cmd+Shift+J` to quickly jump to the current open file in the navigator to easily see and select related files.
192+
Press `cmd shift J` to quickly jump to the current open file in the navigator to easily see and select related files.
193193

194194
Source: [Jeroen Leenarts](https://leenarts.net/2020/02/18/frequently-used-keyboard-shortcuts-i-use-inwith-xcode/)
195195

196196
### Open the jump bar
197197

198-
Press `Ctrl+6` to open the symbol jump bar in Xcode. Now start typing. Try it, jumping to a function in the current file, never has been so easy.
198+
Press `ctrl 6` to open the symbol jump bar in Xcode. Now start typing. Try it, jumping to a function in the current file, never has been so easy.
199199

200200
Source: [Jeroen Leenarts](https://leenarts.net/2020/02/18/frequently-used-keyboard-shortcuts-i-use-inwith-xcode/)
201201

202202
### Remapping unhelpful keys
203203

204-
Some great shortcuts (e.g. `Shift+Cmd+O` for Open Quickly) are next to useless shortcuts (`Shift+Cmd+P`, for the never times you want to print code.) It takes only seconds to remove unhelpful keys, and you can even remap things like `Cmd+P` to resuming SwiftUI's preview.
204+
Some great shortcuts (e.g. `cmd shift O` for Open Quickly) are next to useless shortcuts (`cmd shift P`, for the never times you want to print code.) It takes only seconds to remove unhelpful keys, and you can even remap things like `cmd P` to resuming SwiftUI's preview.
205205

206206
Source: [Paul Hudson](https://www.hackingwithswift.com/articles/229/24-quick-xcode-tips)
207207

@@ -217,6 +217,12 @@ Press `cmd UpArrow` to move to the top of the file. Press `cmd DownArrow` to mov
217217

218218
Press `cmd shift Y` to open and close the debug area.
219219

220+
### Generating an interface file
221+
222+
Press `cmd ctrl UpArrow` to display a generated interface, showing properties, function signatures, and comments for a type. Press it again, to jump to tests for that file if they exist.
223+
224+
Source: [Paul Hudson](https://www.hackingwithswift.com/articles/229/24-quick-xcode-tips)
225+
220226
# [Simulator](#simulator)
221227

222228
### Tiling the simulator
@@ -235,13 +241,13 @@ Source: [Jesse Squires](https://www.jessesquires.com/blog/2020/04/13/fully-autom
235241

236242
### Re-run your last test
237243

238-
Use `Ctrl+Opt+Cmd+G` to re-run your last test. [Jon Reid](https://twitter.com/qcoding) has a name for this making it easier to remember: “smash go!”
244+
Use `cmd ctrl option G` to re-run your last test. [Jon Reid](https://twitter.com/qcoding) has a name for this making it easier to remember: “smash go!”
239245

240246
Source: [Paul Hudson](https://www.hackingwithswift.com/articles/229/24-quick-xcode-tips)
241247

242248
### Randomizing test order
243249

244-
Go to the Product menu, hold down Option, then click Test. Inside the Info tab, click Options then check Randomize Execution Order to run tests in a different order every time.
250+
Go to the Product menu, hold down `option`, then click Test. Inside the Info tab, click Options then check Randomize Execution Order to run tests in a different order every time.
245251

246252
Source: [Paul Hudson](https://www.hackingwithswift.com/articles/229/24-quick-xcode-tips)
247253

@@ -265,12 +271,6 @@ You can grab the edge of the autocomplete popup and drag it as wide as you want!
265271

266272
Source: [Paul Hudson](https://www.hackingwithswift.com/articles/229/24-quick-xcode-tips)
267273

268-
### Generating an interface file
269-
270-
Press `Ctrl+Cmd+Up` to display a generated interface, showing properties, function signatures, and comments for a type. Press it again, to jump to tests for that file if they exist.
271-
272-
Source: [Paul Hudson](https://www.hackingwithswift.com/articles/229/24-quick-xcode-tips)
273-
274274
### Fix Freezing
275275

276276
If your Xcode freezes a lot, unpair all devices (Window/Devices and Simulators).
@@ -314,11 +314,11 @@ Source: [Txai Wieser](https://txaiwieser.github.io/articles/2021-03-08-xcode-def
314314
### Quickly switching between Xcodes
315315

316316
> Using plain xcode-select is slow because you have to provide the path to the Xcode you want to select each time. I wrote a custom shell command to switch between Xcodes more quickly.
317-
317+
318318
Source: [Jesse Squires](https://www.jessesquires.com/blog/2020/07/07/quickly-switching-between-xcodes/)
319319

320320
### Install, manage and switch between different Xcode versions
321321

322-
An easy-to-use command line tool to install and uninstall different Xcode versions on your machine. Xcode versions are installed side-by-side with the version in their name and makes downloading/installing them incredibly easy.
322+
An easy-to-use command line tool to install and uninstall different Xcode versions on your machine. Xcode versions are installed side-by-side with the version in their name and makes downloading/installing them incredibly easy.
323323

324324
Source: [xcinfo](https://github.com/xcodereleases/xcinfo)

0 commit comments

Comments
 (0)