Thomas
Thomas

Reputation: 97

How can I select a word under a cursor position in Kate via shortcut?

During programming I have to often select a whole word and make delete it. I am doing this by double click in mouse, but i prefer do it by keyboard - it is possible?

Upvotes: 2

Views: 633

Answers (2)

dhaumann
dhaumann

Reputation: 1688

As already mentioned, removing the word to the left/right is done with ctrl+backspace and ctrl+delete.

There is also ctrl+h, which selects the word under the cursor. May also be handy if you want to delete it. But originally, ctrl+h was added as search for word under cursor (i.e., pressing ctrl+h again will jump to the next instance).

Upvotes: 5

harry
harry

Reputation: 357

I do not have a Kate IDE right now to test, but these two should work, they are kind of universal.

Ctrl+Backspace – Delete previous word
Ctrl+Delete    – Delete next word

You could also just select a word left or right from the cursor with the following short keys

Shift+Ctrl+Left or Right Arrow Keys – Select words respectively left or right from the cursor

Using the short keys in a middle of the word you will delete respectively the left or the right part of the word.

Hope this helps :)

Upvotes: 2

Related Questions