IDE -> Ctrl+D is undocumented

Working on new editor enhancements?
c4s
Addict
Addict
Posts: 1981
Joined: Thu Nov 01, 2007 5:37 pm
Location: Germany

IDE -> Ctrl+D is undocumented

Post by c4s »

Some days ago I discovered that Ctrl+D doubles the current line of code. I never knew about a function like this so I wanted to find out if there are similar shortcuts. But at Settings -> Shortcuts this "Double Line" function isn't listed.

P.S.
If it's important: I'm using the german IDE.
If any of you native English speakers have any suggestions for the above text, please let me know (via PM). Thanks!
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: IDE -> Ctrl+D is undocumented

Post by Fred »

It's scintilla and it's not a bug.
c4s
Addict
Addict
Posts: 1981
Joined: Thu Nov 01, 2007 5:37 pm
Location: Germany

Re: IDE -> Ctrl+D is undocumented

Post by c4s »

Sure it's a "bug" because I can't disable it and it's not listed in the list of shortcuts etc. Maybe I want to use Ctrl+D for something else?! ;)

Maybe you should add a note somewhere because it's kind of a useful function in my opinion.
If any of you native English speakers have any suggestions for the above text, please let me know (via PM). Thanks!
User avatar
skywalk
Addict
Addict
Posts: 4211
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: IDE -> Ctrl+D is undocumented

Post by skywalk »

C'mon Fred!
You gotta take credit for a new found feature that saves me a bunch of keystrokes...
Are there any more going to be allowed?
I know the Find in reverse doesn't work... :(

...Scintilla shortcuts unconfirmed...
Magnify text size. Ctrl+Keypad+
Reduce text size. Ctrl+Keypad-
Restore text size to normal. Ctrl+Keypad/
Cycle through recent files. Ctrl+Tab
Indent block. Tab
Dedent block. Shift+Tab
Delete to start of word. Ctrl+BackSpace
Delete to end of word. Ctrl+Delete
Delete to start of line. Ctrl+Shift+BackSpace
Delete to end of line. Ctrl+Shift+Delete
Go to start of document. Ctrl+Home
Extend selection to start of document. Ctrl+Shift+Home
Go to start of display line. Alt+Home
Extend selection to start of display line. Alt+Shift+Home
Go to end of document. Ctrl+End
Extend selection to end of document. Ctrl+Shift+End
Go to end of display line. Alt+End
Extend selection to end of display line. Alt+Shift+End
Expand or contract a fold point. Ctrl+Keypad*
Create or delete a bookmark. Ctrl+F2
Go to next bookmark. F2
Select to next bookmark. Alt+F2
Find selection. Ctrl+F3
Find selection backwards. Ctrl+Shift+F3
Scroll up. Ctrl+Up
Scroll down. Ctrl+Down
Line cut. Ctrl+L
Line copy. Ctrl+Shift+T
Line delete. Ctrl+Shift+L
Line transpose with previous. Ctrl+T
Selection duplicate. Ctrl+D
Find matching preprocessor conditional, skipping nested ones. Ctrl+K
Select to matching preprocessor conditional. Ctrl+Shift+K
Find matching preprocessor conditional backwards, skipping nested ones. Ctrl+J
Select to matching preprocessor conditional backwards. Ctrl+Shift+J
Previous paragraph. Shift extends selection. Ctrl+[
Next paragraph. Shift extends selection. Ctrl+]
Previous word. Shift extends selection. Ctrl+Left
Next word. Shift extends selection. Ctrl+Right
Previous word part. Shift extends selection Ctrl+/
Next word part. Shift extends selection. Ctrl+\
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
User avatar
Kaeru Gaman
Addict
Addict
Posts: 4826
Joined: Sun Mar 19, 2006 1:57 pm
Location: Germany

Re: IDE -> Ctrl+D is undocumented

Post by Kaeru Gaman »

Hotkeys like

Code: Select all

Ctrl+[
Ctrl+]
are unusable on a German Keyboard, because [ and ] are right-alt-8 and 9.
the keys where the english keyboard locate them are used by ö and ä.
slash is shift-7, backslash is right-alt-ß

... I sometimes get a yuck when games use this keys and have no remap function.
oh... and have a nice day.
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Re: IDE -> Ctrl+D is undocumented

Post by gnozal »

'Ctrl+D' is indeed a Scintilla default shortcut.

But you can change it by simply using AddKeyboardShortcut() ; in jaPBe, 'Ctrl+D' is 'Close/Open fold'.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
UserOfPure
Enthusiast
Enthusiast
Posts: 469
Joined: Sun Mar 16, 2008 9:18 am

Re: IDE -> Ctrl+D is undocumented

Post by UserOfPure »

c4s wrote:Sure it's a "bug" because I can't disable it and it's not listed in the list of shortcuts etc. Maybe I want to use Ctrl+D for something else?! ;)
:roll: Pressing F1 in Windows to bring up Help is a "bug" because I can't disable it and I want F1 for something else.
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Re: IDE -> Ctrl+D is undocumented

Post by Trond »

You can use Ctrl+D for something else.
c4s
Addict
Addict
Posts: 1981
Joined: Thu Nov 01, 2007 5:37 pm
Location: Germany

Re: IDE -> Ctrl+D is undocumented

Post by c4s »

UserOfPure wrote::roll: Pressing F1 in Windows to bring up Help is a "bug" because I can't disable it and I want F1 for something else.
Ok I don't really know what this Scintilla stuff is and I don't have to. I just think that Ctrl+D does something that isn't listed or explained anywhere in PureBasic.
And yes, even "F1" can be changed to do something else under Settings -> Shortcuts.

Don't you get my point?
Just write "Doubles current line" or something else in the Shortcut tab (and other important Scintilla functions) so that we are able to configure or get to know them.
If any of you native English speakers have any suggestions for the above text, please let me know (via PM). Thanks!
User avatar
Vera
Addict
Addict
Posts: 858
Joined: Tue Aug 11, 2009 1:56 pm
Location: Essen (Germany)

Re: IDE -> Ctrl+D is undocumented

Post by Vera »

Hello

@skywalk thank's for that list :)

I took it- tested all those shortcuts ... and made a small listed overview which ones are available or not in the IDE and put it in a single html file for everybody to preserve offline.

DL: ScintillaShortcutsPBIDE.html
small hint: these shortcuts work minor to custom assigned hotkeys, so you're free to use them otherwise.

Besides I think a hint in the IDE (help) pointing towards the scintilla features would be helpfull. And including a link where to look it up a nice service ;)

greetings ~ Vera
Last edited by Vera on Sun Jul 18, 2010 11:45 am, edited 1 time in total.
c4s
Addict
Addict
Posts: 1981
Joined: Thu Nov 01, 2007 5:37 pm
Location: Germany

Re: IDE -> Ctrl+D is undocumented

Post by c4s »

@Vera
Thank you.

@Freak (does the IDE, right?), Fred
I don't try to be offensive in anyway. It's just that I think these functions are undocumented and should be listed in the Settings dialog.
If it isn't possible because of Scintilla then...just say it. ;)
If any of you native English speakers have any suggestions for the above text, please let me know (via PM). Thanks!
Post Reply