Page 1 of 2

IDE question

Posted: Fri May 25, 2012 1:08 pm
by ssb
This might sound silly, but what is the keyboard shortcut to delete current line in IDE?
Scintilla's standard "line-delete" combination (Ctrl+Shift+L) does nothing and Ctrl+Shift-Del only erase from cursor position to EOL, not the whole line.

Thanks!

Re: IDE question

Posted: Sat May 26, 2012 12:09 pm
by ssb
Come on folks! Nobody knows the keyboard shortcut that deletes current line?
BTW Ctrl-Shift-L is Scintilla's standard "delete-line" shortcut but doesn't work in Purebasic IDE. Shouldn't this be considered as a bug?

Re: IDE question

Posted: Sat May 26, 2012 12:21 pm
by MachineCode
I don't think there is one. What's so hard about [End], then [Shift+Home], then [Del] ?

Re: IDE question

Posted: Sat May 26, 2012 12:43 pm
by eesau
MachineCode wrote:I don't think there is one. What's so hard about [End], then [Shift+Home], then [Del] ?
On my laptop that takes quite a lot of dexterity...

Re: IDE question

Posted: Sat May 26, 2012 12:45 pm
by ssb
MachineCode wrote:What's so hard about [End], then [Shift+Home], then [Del] ?
Three keystrokes instead one. :wink:
I'm wondering why they needed to disable Scintilla's standard shortcut (Ctrl-Shift-L). Honestly, I have never seen any IDE or programmers editor that doesn't provide a "delete-line" keyboard command.

Re: IDE question

Posted: Sat May 26, 2012 1:01 pm
by gnozal
ssb wrote:Come on folks! Nobody knows the keyboard shortcut that deletes current line?
Iirc there isn't.
ssb wrote:BTW Ctrl-Shift-L is Scintilla's standard "delete-line" shortcut but doesn't work in Purebasic IDE. Shouldn't this be considered as a bug?
Scintilla <> SciTE <> Purebasic IDE.
The PB IDE defines its own shortcuts : Menu -> File -> Preferences -> General / Shortcuts

Re: IDE question

Posted: Sat May 26, 2012 1:10 pm
by ssb
gnozal wrote:Scintilla <> SciTE <> Purebasic IDE.
Powerbasic IDE uses Scintilla and inherits all its editing shortcuts except this one.
gnozal wrote:The PB IDE defines its own shortcuts : Menu -> File -> Preferences -> General / Shortcuts
Great, but I don's see any "delete-line" shortcut there. Do you?

Re: IDE question

Posted: Sat May 26, 2012 1:12 pm
by MachineCode
ssb wrote:Three keystrokes instead one. :wink:
Ctrl+Shift+L is also three keystrokes. ;)

Re: IDE question

Posted: Sat May 26, 2012 1:15 pm
by ssb
MachineCode wrote:
ssb wrote:Three keystrokes instead one. :wink:
Ctrl+Shift+L is also three keystrokes. ;)
Of course you're right! My poor and rusty English! :D
Three keystrokes but a single shortcut action! Better now?

Re: IDE question

Posted: Sat May 26, 2012 1:24 pm
by MachineCode
:lol:

Re: IDE question

Posted: Sat May 26, 2012 1:27 pm
by TI-994A
MachineCode wrote:I don't think there is one. What's so hard about [End], then [Shift+Home], then [Del] ?
[Home] then [Ctrl-Shift-Del]...

Re: IDE question

Posted: Sat May 26, 2012 1:33 pm
by MachineCode
TI-994A wrote:[Home] then [Ctrl-Shift-Del]
Nice one!

Re: IDE question

Posted: Sat May 26, 2012 1:34 pm
by ssb
TI-994A wrote:
MachineCode wrote:I don't think there is one. What's so hard about [End], then [Shift+Home], then [Del] ?
[Home] then [Ctrl-Shift-Del]...
Better, but still two shortcuts action and still don't delete the emptied line. Now we have to wait for fred to make them one in next pb update. :lol:
I'm sure he understands that "delete-current-line" is much more useful and common function than the ...Ascii table which already has a dedicated keyboard shortcut.

Re: IDE question

Posted: Sat May 26, 2012 4:24 pm
by skywalk
I thoroughly agree an IDE should strive to eliminate or reduce repetitive keystrokes :evil:

I can duplicate a line or several lines with [Ctrl+D].
But why isn't [Ctrl+L] an equivalent to cut or delete :(
Yes, I know [Ctrl+L] = goto last line, but that is almost useless since it is not directional and does not span different tabs.

Instead of [Ctrl+L] I have to:
[Home] + [Home] + [Shift + Down x nLines] + [Delete] :evil:
Or:
LMClick the Line Numbers + [Delete]

Jeesh... :(

Re: IDE question

Posted: Sun May 27, 2012 12:17 am
by MachineCode
skywalk wrote:I know [Ctrl+L] = goto last line, but that is almost useless since it is not directional
What do you mean? It goes both backwards and forwards for me.