Reputation: 26008
It turns out that for a such simple action as copy-paste I have to try very hard in IntelliJ Idea 12. I need to copy-paste many lines. I have tried many to do it by numerous ways and failed.
Other IDEs allow to do it very simply, but here it selects the area not the line(s). I even failed to paste the text because it pasted somewhat weirdly.
How can I do it exactly: copy line by line and paste?
Upvotes: 2
Views: 1474
Reputation: 401975
To select multiple lines:
Be aware of the Expand Selection feature (Ctrl+W) that makes it easier to select code basing on context, press it several times to expand selection.
Another way:
Upvotes: 2
Reputation: 15280
From your description, it sounds like you've turned on column selection mode. From the IntelliJ IDEA help:
To toggle between the line and the column selection modes, do one of the following
- On the main menu, choose Edit | Column Selection Mode.
- On the context menu of the editor, choose Column Selection Mode.
- Press Command Shift Multiply.
- Keeping the middle mouse button pressed, drag the mouse.
Upvotes: 2