PSP has the option to delete text from the cursor to the end of line
(delete to right)
and to delete text from the beginning of the line to the cursor.
(delete to left)
Nothing similar in Npp?
I tried it with macros but didn't work (bad knowledge of macros)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Position cursor somewhere in the middle of a line.
Macro -> Start Recording.
SHIFT-END
DELETE
Macro -> Stop Recording.
To delete to the beginning of line:
Position cursor somewhere in the middle of a line that begins with a space or tab.
Macro -> Start Recording.
SHIFT-HOME
SHIFT-HOME
DELETE
Macro -> Stop Recording.
Note: You have to do the SHIFT-HOME twice because the first time takes you to the beginning of the non-whitespace characters. The second one takes you to the beginning of the actual line.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
PSP has the option to delete text from the cursor to the end of line
(delete to right)
and to delete text from the beginning of the line to the cursor.
(delete to left)
Nothing similar in Npp?
I tried it with macros but didn't work (bad knowledge of macros)
thank you.
I had to do the SHIFT-END twice as well to go to the end of the line with word wrapping.
Thank you for your help.
If you want to do it as a macro, try these:
To delete to the end of line:
Position cursor somewhere in the middle of a line.
Macro -> Start Recording.
SHIFT-END
DELETE
Macro -> Stop Recording.
To delete to the beginning of line:
Position cursor somewhere in the middle of a line that begins with a space or tab.
Macro -> Start Recording.
SHIFT-HOME
SHIFT-HOME
DELETE
Macro -> Stop Recording.
Note: You have to do the SHIFT-HOME twice because the first time takes you to the beginning of the non-whitespace characters. The second one takes you to the beginning of the actual line.