Line completion

Hi,

is there a way to auto-complete an entire line?
Vim has such functionality (Ctrl-X-L) and it comes in handy at times.

thanks in advance.

best

6 comments

Hello.

AFAIU, line completion essentially means an ability to copy any already existing line to current location? There is no exactly such action. I typically use Duplicate (Ctrl+D, works with and without selection) to make a copy, then Move Statement Up/Down (Ctrl+Shift+Up/Down) to move the copy to proper place.

Regards,
Alexander.

0

Hello.

AFAIU, line completion essentially means an  ability to copy any already existing line to current location? There is  no exactly such action. I typically use Duplicate (Ctrl+D, works with and without selection) to make a copy, then Move Statement Up/Down (Ctrl+Shift+Up/Down) to move the copy to proper place.

Regards,
Alexander.

0

Hello.

AFAIU, line completion essentially means an ability to copy any already existing
line to current location? There is no exactly such action. I typically use
Duplicate (Ctrl+D, works with and without selection) to make a copy, then
Move Statement Up/Down (CtrlShiftUp/Down) to move the copy to proper place.

Regards,
Alexander.


0

it does.

say you have this text snippet:, containing three lines:

"IntelliJ IDEA offers smart, type-aware code completion.
It knows when you may want to cast to a type and is also aware of the run-time type checks that you made,
after which you can perform cast and method invocation in a single action!"

Typing

IntelliJ<SOMESHORTCUT>

should create a popup showing me all lines starting with IntelliJ in my project. this is significantly more comfortable/quicker than  switching to another class, find the line, copying the content of the line, going back and finally insert the line...

regards

0

by the way: a third-party plugin would be fine too

0

The API is open. You are free to build this plug-in yourself.

For me Ctrl-C (without selection) and Ctrl-V works fine.

Tom

0

Please sign in to leave a comment.