Move cursor to end of line without “End” key on keyboard.
Trevor G last edited by
How to move cursor to the end of line in notepad ++ without the “End” key on the keyboard. I have a Bluetooth keyboard that DOES NOT have an “End” I been using the arrow key but it takes too long and help would be greatly appreciated.
Meta Chuh last edited by
welcome to the notepad++ community, @Trevor-G
usually slim keyboards and mac keyboards have an
fnkey, which triggers end, home, etc. when combined with cursor and other keys.
on a mac keyboard for example,
fn+rightmoves the cursor to the end of a line or wrapped line segment, and
fn+leftto the beginning.
Terry R last edited by Terry R
move cursor to the end of line
There are probably several ways. Not sure if there is a shortcut (hotkey) that doesn’t involve END key. However how about Ctrl-right arrow, which moves across in words.
Another method might be to go to next line and then back 1 character, so arrow down, then back arrow. This would only work best if at start of a line.
Terry R last edited by
I also went into Settings, Shortcut Mapper, then to the Scintilla Commands. Look for option #62 called SCI_LINEEND (at least it’s #62 in my version).
This doesn’t currently have a hotkey assigned but I assigned Ctrl-Shift-E without any conflict. It seems to work.
PeterJones last edited by
Look for option #62 called SCI_LINEEND (at least it’s #62 in my version)
With newer Notepad++ (like v7.6.6), you can filter on something like
LINEEND, and it will make it easier to find than scrolling through 62 (more or less) rows.
That said, there are SCI_LINEEND (scintilla message id 2314) and SCI_LINEENDWRAP (2451) – by default, 2314 is unmapped, and 2451 is mapped to
ENDkey. If you don’t have line-wrap turned on, they both behave the same. If you do have line-wrap turned on, SCI_LINEEND will take you to the end of the actual line (so if the line wraps so it takes up 3 displayed “rows” on the screen, it will take you to the end of the third row); whereas SCI_LINEENDWRAP will take you to the end of the current displayed “row” (so if the line wraps so it takes up 3 displayed “rows” on the screen, it will take you to the end of whichever row your cursor was on) – though if you’re already at the end of the “row”, running SCI_LINEENDWRAP again will take you to the end of the full line. There’s actually a third, SCI_LINEENDDISPLAY (2347, default mapped to
Alt+END), which behaves similarly to 2451, except hitting it a second time leaves the cursor where it is.
Any of those Scintilla messages can be mapped to whatever keyboard keys are convenient. (And scintilla messages are unique, in that you can actually map a given message to more than one shortcut.)