News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Question on keyboard short-cuts

Started by dushara, December 26, 2012, 01:42:56 PM

Previous topic - Next topic

dushara

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



Pecan


I do not find that Ctrl-T is assigned to anything on my system.
What is it assigned to on yours?

zabzonk

QuoteI 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.

Alpha


MortenMacFly

Quote from: dushara on December 26, 2012, 01:42:56 PM
[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]
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

Alpha

Quote from: MortenMacFly on December 26, 2012, 03:33:39 PM
To my knowledge it is implemented - Alpha did it. But I can't recall how to do it at the moment.
Quote from: Alpha on December 26, 2012, 03:31:28 PM
Alt+Up/Down
??

MortenMacFly

Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

dushara

Quote from: Alpha on December 26, 2012, 03:31:28 PM
Alt+Up/Down
Thanks Alpha. Just out of curiosity, there's no menu option for that is there?

Alpha

Edit->Special commands->Line->Move up/down

dushara

Quote from: Alpha on December 28, 2012, 06:44:28 PM
Edit->Special commands->Line->Move up/down
Cool thanks.

Once again to all the devs: Thanks for a great IDE.