Home Download Buy Blog Forum Support

Move a selection ? it's possible

Re: Move a selection ? it's possible

Postby alexrussell on Wed Nov 02, 2011 9:06 am

FYI: I would pay for such a plugin
alexrussell
 
Posts: 74
Joined: Fri Jul 15, 2011 9:06 am

Re: Move a selection ? it's possible

Postby kossa on Wed Nov 02, 2011 11:05 am

we hoped ;)
And I'll buy it
kossa
 
Posts: 9
Joined: Wed Oct 26, 2011 10:53 am

Re: Move a selection ? it's possible

Postby slestak989 on Wed Nov 02, 2011 1:07 pm

iamntz wrote:Works with ctrl+shift+up/down.



That is awesome
Using ST2 on: Win7 Pro 64 || Win7 32|| Fedora 16
slestak989
 
Posts: 31
Joined: Tue Oct 04, 2011 3:40 am

Re: Move a selection ? it's possible

Postby micmcg on Fri Nov 11, 2011 7:45 am

iamntz wrote:Works with ctrl+shift+up/down.

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


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.
micmcg
 
Posts: 1
Joined: Fri Nov 11, 2011 7:43 am

Re: Move a selection ? it's possible

Postby bizoo on Fri Nov 11, 2011 8:15 am

micmcg wrote:
iamntz wrote:Works with ctrl+shift+up/down.

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


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.

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:
Code: Select all
   { "keys": ["ctrl+super+up"], "command": "swap_line_up" },
   { "keys": ["ctrl+super+down"], "command": "swap_line_down" },

The shortcuts are in the file:
Code: Select all
\Packages\Default\Default (OSX).sublime-keymap
bizoo
 
Posts: 873
Joined: Wed Dec 08, 2010 6:53 am
Location: Switzerland

Previous

Return to Technical Support

Who is online

Users browsing this forum: Google [Bot] and 21 guests