The ability to move lines around without cutting and pasting.
In notepad++ I can do this with ctrl-shift-up or ctrl-shift-down. In Microsoft Visual Studio 2013, I can do this with alt-up and alt-down.
See EditorKeyBindings.java and CutLineAction. We can create a new Action and bind it.
@kin-hong: let me know if there are any difficulties in implementing this issue.
@kin-hong: let me know if there are any difficulties in implementing this issue.
The following key bindings have been added to the "Text Editor" category under File->Options->Key Mappings:
Keymap Name | Windows/Linux keystroke | OSX keystroke |
Edit: Move Line(s) Up | shift + control + up | alt + meta + up |
Edit: Move Line(s) Down | shift + control + down | alt + meta + down |
Internally, we are using Netbeans editor's ActionFactory.MoveSelectionElseLineUpAction and ActionFactory.MoveSelectionElseLineDownAction action implementation
The following key bindings have been added to the "Text Editor" category under File->Options->Key Mappings:
Keymap Name | Windows/Linux keystroke | OSX keystroke |
Edit: Move Line(s) Up | shift + control + up | alt + meta + up |
Edit: Move Line(s) Down | shift + control + down | alt + meta + down |
Internally, we are using Netbeans editor's ActionFactory.MoveSelectionElseLineUpAction and ActionFactory.MoveSelectionElseLineDownAction action implementation
16.0.0-dev-60
I tested this in:
Windows 8.1 (inside VMWare fusion pro 6 OS X)
Ubuntu 14.04.1 (inside VMWare fusion pro 6 OS X)
OS X 10.9.5
I even used "box selection" inside the editor.
16.0.0-dev-60
I tested this in:
Windows 8.1 (inside VMWare fusion pro 6 OS X)
Ubuntu 14.04.1 (inside VMWare fusion pro 6 OS X)
OS X 10.9.5
I even used "box selection" inside the editor.
Works fine in 16.0.0-dev-60.
One thing we noticed is that you cannot create a short cut for Mac Command-Shift-Up arrow key under File -> Options -> KeyMapping in Mac OSX
Works fine in 16.0.0-dev-60.
One thing we noticed is that you cannot create a short cut for Mac Command-Shift-Up arrow key under File -> Options -> KeyMapping in Mac OSX
to elaborate...
when the key assist appears and you begin to press the keys needed for
command + shift + up arrow
pressing Command + Shift gets registered in the key assist form input field, while the up arrow becomes the equivalent of a text selector inside the input field and it highlights the symbols generated pressing command and shift.
I will attach a gif animation of this to illustrate.
to elaborate...
when the key assist appears and you begin to press the keys needed for
command + shift + up arrow
pressing Command + Shift gets registered in the key assist form input field, while the up arrow becomes the equivalent of a text selector inside the input field and it highlights the symbols generated pressing command and shift.
I will attach a gif animation of this to illustrate.
Issue #12518 |
Closed |
Fixed |
Resolved |
Completion |
No due date |
Fixed Build 16.0.0-dev-57 |
No time estimate |
1 issue link |
relates to #13671
Issue #13671Ctrl-shift-[UP/DOWN] no longer moves to bookmark position in editor |
See EditorKeyBindings.java and CutLineAction. We can create a new Action and bind it.