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.
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.
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.
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...
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.
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.
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.
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
by the way: a third-party plugin would be fine too
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