IDE question

Everything else that doesn't fall into one of the other PB categories.
ssb
User
User
Posts: 44
Joined: Wed Jun 21, 2006 11:09 am

IDE question

Post 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!
ssb
User
User
Posts: 44
Joined: Wed Jun 21, 2006 11:09 am

Re: IDE question

Post 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?
MachineCode
Addict
Addict
Posts: 1482
Joined: Tue Feb 22, 2011 1:16 pm

Re: IDE question

Post by MachineCode »

I don't think there is one. What's so hard about [End], then [Shift+Home], then [Del] ?
Microsoft Visual Basic only lasted 7 short years: 1991 to 1998.
PureBasic: Born in 1998 and still going strong to this very day!
eesau
Enthusiast
Enthusiast
Posts: 589
Joined: Fri Apr 27, 2007 12:38 pm
Location: Finland

Re: IDE question

Post 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...
ssb
User
User
Posts: 44
Joined: Wed Jun 21, 2006 11:09 am

Re: IDE question

Post 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.
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Re: IDE question

Post 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
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
ssb
User
User
Posts: 44
Joined: Wed Jun 21, 2006 11:09 am

Re: IDE question

Post 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?
MachineCode
Addict
Addict
Posts: 1482
Joined: Tue Feb 22, 2011 1:16 pm

Re: IDE question

Post by MachineCode »

ssb wrote:Three keystrokes instead one. :wink:
Ctrl+Shift+L is also three keystrokes. ;)
Microsoft Visual Basic only lasted 7 short years: 1991 to 1998.
PureBasic: Born in 1998 and still going strong to this very day!
ssb
User
User
Posts: 44
Joined: Wed Jun 21, 2006 11:09 am

Re: IDE question

Post 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?
MachineCode
Addict
Addict
Posts: 1482
Joined: Tue Feb 22, 2011 1:16 pm

Re: IDE question

Post by MachineCode »

:lol:
Microsoft Visual Basic only lasted 7 short years: 1991 to 1998.
PureBasic: Born in 1998 and still going strong to this very day!
User avatar
TI-994A
Addict
Addict
Posts: 2791
Joined: Sat Feb 19, 2011 3:47 am
Location: Singapore
Contact:

Re: IDE question

Post 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]...
Texas Instruments TI-99/4A Home Computer: the first home computer with a 16bit processor, crammed into an 8bit architecture. Great hardware - Poor design - Wonderful BASIC engine. And it could talk too! Please visit my YouTube Channel :D
MachineCode
Addict
Addict
Posts: 1482
Joined: Tue Feb 22, 2011 1:16 pm

Re: IDE question

Post by MachineCode »

TI-994A wrote:[Home] then [Ctrl-Shift-Del]
Nice one!
Microsoft Visual Basic only lasted 7 short years: 1991 to 1998.
PureBasic: Born in 1998 and still going strong to this very day!
ssb
User
User
Posts: 44
Joined: Wed Jun 21, 2006 11:09 am

Re: IDE question

Post 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.
User avatar
skywalk
Addict
Addict
Posts: 4318
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: IDE question

Post 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... :(
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
MachineCode
Addict
Addict
Posts: 1482
Joined: Tue Feb 22, 2011 1:16 pm

Re: IDE question

Post 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.
Microsoft Visual Basic only lasted 7 short years: 1991 to 1998.
PureBasic: Born in 1998 and still going strong to this very day!
Post Reply