How to Configure "Home" and "End" Keys to Move Cursor to Start/End of Line on macOS

Post Reply
esvignolo
Posts: 3
Joined: 04.06.2020 11:25

How to Configure "Home" and "End" Keys to Move Cursor to Start/End of Line on macOS

Post by esvignolo »

Hello everyone,

I've been using CudaText for a while now, and I'm really impressed with its features and performance. Great job to the development team!

I have a question about key configuration on macOS. A while back, there was an update that made the "Home" and "End" keys move the cursor to the beginning and end of the file, respectively. While this is useful in some contexts, I would like to configure these keys to move the cursor to the start and end of the line instead, like it does on Windows and Linux systems.

Could anyone guide me on how to achieve this? Your help would be greatly appreciated.

Thanks in advance, and keep up the great work on this amazing text editor!

Best regards, Esteban
main Alexey
Posts: 2245
Joined: 25.08.2021 18:15

Re: How to Configure "Home" and "End" Keys to Move Cursor to Start/End of Line on macOS

Post by main Alexey »

- call 'Command Palette' dialog (Help / Command palette)
- find there in the list 2 commands: 'caret to line begin', 'caret to line end'
- press F9 (inside Command Palette) over these 2 commands and set the hotkeys, Home and End. when Cud asks to overwrite existing hotkeys, confirm

You may set also Shift+Home and Shift+End, do it for these 2 commands: 'caret to line begin (end) + select'.

Check that settings/keys.json contains new settings.
Post Reply