ssb wrote: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!
Make this an IDE tool ("Delete current line") with keyboard shortcut Ctrl+Shift+L:
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.
Can you explain? How do you make the IDE goto recent line in reverse?
[Ctrl+Shift+L] does nothing for me...And successive [Ctrl+L]'s eventually runs out of the list and stops.
Danilo wrote:You can do this with all Scintilla Keyboard Commands
Thanks Danilo...I would really love this to be native, cause we're talking dozens of small tools and modifying shortcuts and keeping track.
Given PureBasic's IDE uses Scintilla, then it makes sense to inherit most of its built-in functions.
Almost like a standard.
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
skywalk wrote: Can you explain? How do you make the IDE goto recent line in reverse?
Maybe I don't understand what you mean by "reverse". What I mean, is that it will go back and forth in my source, depending on where I've moved the cursor.
So if I'm at line 500 of a 1000-line program, and I do a "Find" to go to line 250, and then I go to line 750; then doing Ctrl+L will jump me back to line 250 (since that was the previous cursor location). That's what I meant. And forwards in my source like that, too.
Microsoft Visual Basic only lasted 7 short years: 1991 to 1998.
PureBasic: Born in 1998 and still going strong to this very day!
skywalk wrote:Thanks Danilo...I would really love this to be native, cause we're talking dozens of small tools and modifying shortcuts and keeping track.
Given PureBasic's IDE uses Scintilla, then it makes sense to inherit most of its built-in functions.
Almost like a standard.
Of course you are right and I fully agree that it should be added to the PureBasic IDE, defining
own shortcuts for everything that's possible. Minimalistic coding may be good if you code for
end users, but not if you make products for experts or programmers.
You know the situation with feature requests, it can take years or it never happens, so do it yourself
is the only real solution. Now - instantly. Life's to short for awaiting things to be done by others.
Danilo wrote:You know the situation with feature requests, it can take years or it never happens, so do it yourself
is the only real solution. Now - instantly. Life's to short for awaiting things to be done by others.
skywalk wrote: Can you explain? How do you make the IDE goto recent line in reverse?
Maybe I don't understand what you mean by "reverse". What I mean, is that it will go back and forth in my source, depending on where I've moved the cursor.
So if I'm at line 500 of a 1000-line program, and I do a "Find" to go to line 250, and then I go to line 750; then doing Ctrl+L will jump me back to line 250 (since that was the previous cursor location). That's what I meant. And forwards in my source like that, too.
Hard to explain, but in Visual Studio, you can step through previous lines no matter what file you were in and return using the opposite keystroke. In my case I use the Shift key as an opposite. Much like [F3] will find next occurrence forward and [Shift+F3] will find the next occurrence backwards. (Which we also cannot do in PB IDE )
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
Hi Danilo,
While I can get LineDelete, UCase & LCase tools to work using your snippet modified for the specific actions, my next favorite Scintilla/NotePad++ keystroke is thwarted in the PB IDE.
; This doesn't work in PB IDE :(
; Compile & assign ct_sci_kybd_mvSelLinesDown.exe --> Shorcut = [Ctrl+Shift+Down]
; This becomes the opposite of ct_sci_kybd_mvSelLinesUp.exe via Shorcut = [Ctrl+Shift+UP]
#SCI_MOVESELECTEDLINESUP = 2620
#SCI_MOVESELECTEDLINESDOWN = 2621
Define.i ri, hSci = Val(GetEnvironmentVariable("PB_TOOL_Scintilla"))
If hSci
SendMessageTimeout_(hSci,#SCI_MOVESELECTEDLINESDOWN,0,0,#SMTO_ABORTIFHUNG,2000,@ri)
EndIf
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
skywalk wrote:Hi Danilo,
While I can get LineDelete, UCase & LCase tools to work using your snippet modified for the specific actions, my next favorite Scintilla/NotePad++ keystroke is thwarted in the PB IDE.
; This doesn't work in PB IDE :(
; Compile & assign ct_sci_kybd_mvSelLinesDown.exe --> Shorcut = [Ctrl+Shift+Down]
; This becomes the opposite of ct_sci_kybd_mvSelLinesUp.exe via Shorcut = [Ctrl+Shift+UP]
#SCI_MOVESELECTEDLINESUP = 2620
#SCI_MOVESELECTEDLINESDOWN = 2621
Define.i ri, hSci = Val(GetEnvironmentVariable("PB_TOOL_Scintilla"))
If hSci
SendMessageTimeout_(hSci,#SCI_MOVESELECTEDLINESDOWN,0,0,#SMTO_ABORTIFHUNG,2000,@ri)
EndIf