hdx hdx - 1 year ago 167
Java Question

Intellij IDEA way of editing multiple lines

I've seen this done in TextMate and I was wondering if there's a way to do it in IDEA.

Say I have the following code:

leaseLabel = "Lease";
leaseLabelPlural = "Leases";
portfolioLabel = "Portfolio";
portfolioLabelPlural = "Portfolios";
buildingLabel = "Building";

What is the best way to append '+ "foo"' to every line? Column mode won't work since the lines are not correctly aligned on the right side... unless there is an easy way to right justify the text :P

Thx in advance!!

Answer Source

Since Idea IntelliJ IDEA 13.1 there is possibility to edit multiple lines.


Alt+Shift+Mouse click

for selection. More about this new improvement in IntelliJ blogpost here. Very useful feature.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download