Page 1 of 1

redefine control-x to cut selection or line

Posted: 07.02.2026 10:52
by alusiani
Hi,

is it possible to redefine control-x to work as in vscode, i.e., if selection exists cut it, otherwise cut the current line?

Re: redefine control-x to cut selection or line

Posted: 07.02.2026 13:19
by main Alexey
you can set (in user.json) option

"cut_line_if_no_sel":true,

it will be like in VSCode?
remember that user.json needs { } brackets on edges of text.

Re: redefine control-x to cut selection or line

Posted: 07.02.2026 18:14
by alusiani
Thanks! It confirm that it works for me.