Reputation: 41
I want to edit a multi-cursor (^ + shift + click) of Xcode but I don't find the option to edit it. Anybody know where is it? Thanks
Upvotes: 1
Views: 275
Reputation: 437452
It appears that you want to replace control-shift-click with option-shift-click. I don't believe there is any way to do that.
(My original answer, outlining how multiple cursors work, is below.)
If you’re talking about multiple cursors, you do it with option-click and drag.
For example, I wanted to add some spacing in the definition of this array:
This is #32 in Hacking with Swift’s Xcode tips and tricks.
(That having been said, Hacking with Swift uses example of the writing of an memberwise init
method. That is something probably more easily achieved with “Editor” » “Refactor” » “Generate Memberwise Initializer”.)
The control-shift-click is for adding a cursor. E.g., in this example, I “accidentally” missed a cursor on the first line, so I control-shift-clicked on first line to add the missing cursor:
And if you control-shift-click on an existing cursor, it will remove it, effectively toggling the various cursors.
Upvotes: 1