Author Topic: Question on keyboard short-cuts  (Read 7571 times)

Offline dushara

  • Multiple posting newcomer
  • *
  • Posts: 29
Question on keyboard short-cuts
« 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



Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2778
Re: Question on keyboard short-cuts
« Reply #1 on: December 26, 2012, 02:09:00 pm »

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

zabzonk

  • Guest
Re: Question on keyboard short-cuts
« Reply #2 on: December 26, 2012, 02:17:53 pm »
Quote
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.

Offline Alpha

  • Developer
  • Lives here!
  • *****
  • Posts: 1513
Re: Question on keyboard short-cuts
« Reply #3 on: December 26, 2012, 03:31:28 pm »
Alt+Up/Down

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Question on keyboard short-cuts
« Reply #4 on: December 26, 2012, 03:33:39 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: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline Alpha

  • Developer
  • Lives here!
  • *****
  • Posts: 1513
Re: Question on keyboard short-cuts
« Reply #5 on: December 26, 2012, 03:45:57 pm »
To my knowledge it is implemented - Alpha did it. But I can't recall how to do it at the moment.
Alt+Up/Down
??

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Question on keyboard short-cuts
« Reply #6 on: December 26, 2012, 04:08:08 pm »
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline dushara

  • Multiple posting newcomer
  • *
  • Posts: 29
Re: Question on keyboard short-cuts
« Reply #7 on: December 28, 2012, 02:49:29 pm »
Alt+Up/Down
Thanks Alpha. Just out of curiosity, there's no menu option for that is there?

Offline Alpha

  • Developer
  • Lives here!
  • *****
  • Posts: 1513
Re: Question on keyboard short-cuts
« Reply #8 on: December 28, 2012, 06:44:28 pm »
Edit->Special commands->Line->Move up/down

Offline dushara

  • Multiple posting newcomer
  • *
  • Posts: 29
Re: Question on keyboard short-cuts
« Reply #9 on: December 30, 2012, 06:13:11 am »
Edit->Special commands->Line->Move up/down
Cool thanks.

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