Code::Blocks Forums
User forums => Help => Topic started by: dushara on December 26, 2012, 01:42:56 pm
-
Hi,
There are 2 parts to this question:
- Is there a way to move a selection up/down - sort of like what Notepad++ does with Ctrl+Shift+Up/Down (http://sourceforge.net/apps/mediawiki/notepad-plus/index.php?title=Shortcuts)?
I'm aware of Ctrl+T, but that doesn't work for a selection and AFAIK there's not way to swap with the line below.
- I noticed that pressing Ctrl+T in
Settings -> Editor -> Keyboard Shortcuts -> New shortcut
says that it's currently not assigned to anything (even though it is).
I'm using version 12.11 rev 8629 in Ubuntu Lucid (10.04)
Thanks
Dushara
-
I do not find that Ctrl-T is assigned to anything on my system.
What is it assigned to on yours?
-
I do not find that Ctrl-T is assigned to anything on my system.
What is it assigned to on yours?
It seems to be assigned to Transpose (swap lines) but the setting does not show up in the menu or in the Keyboard Shortcuts configuration dialog.
-
Alt+Up/Down
-
- Is there a way to move a selection up/down - sort of like what Notepad++ does with Ctrl+Shift+Up/Down (http://sourceforge.net/apps/mediawiki/notepad-plus/index.php?title=Shortcuts)?
[Tlist]
To my knowledge it is implemented - Alpha did it. But I can't recall how to do it at the moment. However, are you aware that you can drag and drop selected text in an editor using the mouse?[/list]
-
To my knowledge it is implemented - Alpha did it. But I can't recall how to do it at the moment.
Alt+Up/Down
??
-
Alt+Up/Down
Yes - thats what I meant (our posts crossed).
-
Alt+Up/Down
Thanks Alpha. Just out of curiosity, there's no menu option for that is there?
-
Edit->Special commands->Line->Move up/down
-
Edit->Special commands->Line->Move up/down
Cool thanks.
Once again to all the devs: Thanks for a great IDE.