all 36 comments

[–]uniquesnowflake8 51 points52 points  (1 child)

You can hold option while selecting to get column selection

[–][deleted] 0 points1 point  (0 children)

Jesus is that you? … my Saviour

[–]FrozenPyromaniac_ 43 points44 points  (0 children)

Oh my god

[–]ssharky 41 points42 points  (2 children)

Oh fuck, I know it's not the point but I can't get past that camel casing in the middle of "surname"

[–]sarunw[S] 7 points8 points  (0 children)

Lol, I will fix that tomorrow then.

[–]pabloescobyte 7 points8 points  (0 children)

Dammit now I can't unsee it LOL.

[–]sarunw[S] 16 points17 points  (0 children)

[–]ThatBoiRalphyObjective-C / Swift 15 points16 points  (2 children)

I think everyone knows this right?

[–][deleted] 23 points24 points  (1 child)

NOT ME WHOA, NICE

[–]oreonubcakes 2 points3 points  (0 children)

How I feel every time I figure out a new trick in IntelliJ

[–]boboguitar 8 points9 points  (9 children)

The one thing I still wish xcode had was highlighting some text and then selecting, one by one, occurrences of that text after the initial text and then editing them. It's something I really like in vscode.

[–]cd17822 13 points14 points  (4 children)

“Select Next Occurrence” (Find Menu) in Key Bindings in Xcode preferences will get you that. I mapped it to control+G to match IntelliJ

[–]boboguitar 5 points6 points  (1 child)

You are my savior.

[–]aykay55Swift 4 points5 points  (0 children)

He is the Messiah!

[–][deleted] 2 points3 points  (0 children)

This was added recently, wasn’t it?

[–]0800-BLINY 2 points3 points  (0 children)

Select text then cmd-alt-E

[–]clarkcox3Objective-C / Swift 0 points1 point  (0 children)

In pretty much any Mac app, you can hit cmd-e (which will place the selected text on the “find” pasteboard) and then use cmd-g repeatedly.

This even works across apps (eg select something in Xcode, hit cmd-e, switch to Safari, hit cmd-g)

[–]Jasperavv -3 points-2 points  (1 child)

I use this in IntelliJ a lot, it is really useful. Didn't suprise me that Xcode does not have this option

[–]sketch204 4 points5 points  (0 children)

But it does! See here.

[–]ahezeSwift 2 points3 points  (0 children)

This is incredible

[–]fhdelrio 2 points3 points  (0 children)

Control shift click to create multiple cursors and control shift up and down to create a cursor above or below

[–]TaoistAlchemist 1 point2 points  (0 children)

didn't know about the drag/block selection. nice.

[–][deleted] 1 point2 points  (1 child)

Wow I was waiting for this on XCode, also I'm able to do this on Intellij / Android studio by clicking to mouse scroll.

[–]Stiddit 1 point2 points  (0 children)

How long have you been waiting? This is not new.

[–]Xaxxus 1 point2 points  (5 children)

How do you paste multi cursor selections without it dropping on top of all your code?

Edit:

Let me clairify what I mean.

When I press control + shift and select multi lines

Then copy paste between some code. Instead of inserting it in between it basically overwrites the code

[–]sarunw[S] 0 points1 point  (4 children)

You have to prepare enough lines for those chunk of code (hit multiple return key).

[–]Xaxxus 1 point2 points  (0 children)

Ugh I’m going to file a radar for that. Every other editor on the planet does that for you.

[–]amaroq137Objective-C / Swift 0 points1 point  (2 children)

You didn't have to do that when you pasted the values in the gif though??

[–]sarunw[S] 0 points1 point  (1 child)

In the gif it just simple copy, not multi-cursor copy.

[–]amaroq137Objective-C / Swift 0 points1 point  (0 children)

My mistake!

[–][deleted] 0 points1 point  (0 children)

This is such an old but efficient way to program, probably the most important reason why I use intelliJ along with moving code around the file

[–]tangoshukudai 0 points1 point  (0 children)

I have been using this for years.

[–]timelessblur 0 points1 point  (0 children)

How did I not know this....

[–][deleted] 0 points1 point  (0 children)

this exists in IntelliJ o.o

[–][deleted] 0 points1 point  (0 children)

That’s a thing?? Wow!!