Linh
Linh

Reputation: 545

IntelliJ Multiline edit at end of each line?

In IntelliJ we can do multiline edit at the same position on each line with Alt + Shift + Insert. Can we do multiline edit at the end of each line when the length of each line is different? A usage scenario is for editing semicolon at the end of each line.

Thanks.

Upvotes: 2

Views: 6009

Answers (2)

Donnie
Donnie

Reputation: 153

For anyone with a Mac and stumbled on this 10 years later, select your lines and press SHIFTG

Upvotes: 2

Greg Miller
Greg Miller

Reputation: 479

This is possible now. Do a multi-line edit starting an any arbitrary column as normal, then press the "END" key and the insertion points will move to the end of each line. Also supported are the HOME, and CTRL + left or right arrow.

Upvotes: 4

Related Questions