Sublime Forum

Move a selection ? it's possible

#1

hello everybody.
I wonder if it’s possible to move a selection ?
Cordially

0 Likes

#2

Thank you sublimator,
But my question is to move (copy if the key CTRL is pressed) with the mouse, like notepad++ or MS office …

0 Likes

#3

Exactly :cry:

0 Likes

#4

Would Cut suffice? Paste it in the new location?

0 Likes

#5

Thank for your answer
So it makes me 2 keys CTRL+C then CTRL+V :open_mouth:

0 Likes

#6

wow…

0 Likes

#7

:smiley:

0 Likes

#8

Works with ctrl+shift+up/down.

Waiting for sublimator or wbond to make an awesome plugin to work with mouse drag&drop :mrgreen:

0 Likes

#9

FYI: I would pay for such a plugin

0 Likes

#10

we hoped :wink:
And I’ll buy it

0 Likes

#11

[quote=“iamntz”]Works with ctrl+shift+up/down.

[/quote]

That is awesome

0 Likes

#12

[quote=“iamntz”]Works with ctrl+shift+up/down.

Waiting for sublimator or wbond to make an awesome plugin to work with mouse drag&drop :mrgreen:[/quote]

This doesn’t seem to work for me. Has anyone else been able to move a selected row up/down with a keyboard shortcut (not copy + paste)? Its really handy for rearranging code. It’s one thing I miss from eclipse.

0 Likes

#13

[quote=“micmcg”]

[quote=“iamntz”]Works with ctrl+shift+up/down.

Waiting for sublimator or wbond to make an awesome plugin to work with mouse drag&drop :mrgreen:[/quote]

This doesn’t seem to work for me. Has anyone else been able to move a selected row up/down with a keyboard shortcut (not copy + paste)? Its really handy for rearranging code. It’s one thing I miss from eclipse.[/quote]

If you give your OS and ST2 version each time you ask a question, it’s way easier to help you.

This shortcut work on Linux and Windows.
If it doesn’t work for you I suppose you use OSX, so the shortcut is:

{ "keys": "ctrl+super+up"], "command": "swap_line_up" }, { "keys": "ctrl+super+down"], "command": "swap_line_down" },
The shortcuts are in the file:

\Packages\Default\Default (OSX).sublime-keymap
0 Likes