Ive been writing swift for months without this answer, and can't find it online. CMD + D is too useful a command in sublime to not have an Xcode equivalent. Can anyone please tell me what it is.
Jump to Line ( ⌘ + L )
Shift + Control + Click First, hold Shift and Control (^) and then click where you want to select multiple lines and then start typing. One small caveat: unlike other text editors where you can click that same line to unselect the multi-line selection, Xcode doesn't support that yet.
From at least Xcode 12.4 and above, this functionality is available as "Select Next Occurrence" in the "Find" menu, and as Option + CMD + E
.
Select some text. Hit Option + CMD + E
to add the next occurrence, resulting in multiple cursors so you can edit all of them at once.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With