A (long time) feature request in IDE: Edition / Delete Line (under cursor)
Yes, there are many patches, but these are patches

Remove entire line where cursor is, is very useful for fast code maintenance



Yes, thanks,RSBasic wrote:Alternative:
1. Press End key
2. Press Ctrl + Shift + Back key
Code: Select all
Protected.i np = CountProgramParameters()
If np
Protected.i hSci = Val(GetEnvironmentVariable("PB_TOOL_Scintilla"))
If hSci
Select UCase(ProgramParameter()) ; 0-based index
Case "UCASE" ; Arguments: UCASE, Shortcut = [Ctrl+u]
SendMessageTimeout_(hSci,#SCI_UPPERCASE,0,0,#SMTO_ABORTIFHUNG,#SCI_TMO_MS,@np)
Case "LCASE" ; Arguments: LCASE, Shortcut = [Ctrl+Shift+u], opposite of UCase line = [Ctrl+u]
SendMessageTimeout_(hSci,#SCI_LOWERCASE,0,0,#SMTO_ABORTIFHUNG,#SCI_TMO_MS,@np)
Case "LINEDEL" ; Arguments: LINEDEL, Shortcut = [Ctrl+Shift+d], opposite of duplicate line = [Ctrl+d]
SendMessageTimeout_(hSci,#SCI_LINEDELETE,0,0,#SMTO_ABORTIFHUNG,#SCI_TMO_MS,@np)
Case "MVLINESUP" ; Arguments: MVLINESUP, Shortcut = [Ctrl+Shift+Up]
SendMessageTimeout_(hSci,#SCI_MOVESELECTEDLINESUP,0,0,#SMTO_ABORTIFHUNG,#SCI_TMO_MS,@np)
Case "MVLINESDN" ; Arguments: MVLINESDN, Shortcut = [Ctrl+Shift+Down]
SendMessageTimeout_(hSci,#SCI_MOVESELECTEDLINESDOWN,0,0,#SMTO_ABORTIFHUNG,#SCI_TMO_MS,@np)
EndSelect
EndIf
EndIf
Works here on Mac, see: http://www.scintilla.org/SciTEDoc.html for default key bindings.ssb wrote:Why cannot have Scintilla's default key bindings?
Code: Select all
Line delete. Ctrl+Shift+L
I searched several places and came up empty.skywalk wrote:Search for "tool code" and add this...Code: Select all
Protected.i np {snip} EndIf