Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse shortcut to select or remove all spaces up to (but excluding) the next word

For years I was working with Netbeans and the following is one of the very few features that I cannot find in eclipse:

How can I select or remove all trailing or preceding spaces up to (but excluding) the next or previous word respectively, in one keystroke combination.

In netbeans Ctrl+Shift+Right / Ctrl+Shift+Left and Ctrl+Backspace / Ctrl+Delete would just do this.

like image 916
Marinos An Avatar asked Jan 21 '26 17:01

Marinos An


1 Answers

In eclipse,

Shift+Ctrl+Left   =  Select previous word

Shift+Ctrl+Right  =  Select next word

Use Ctrl+Right or Ctrl+Left = To jump to end or start of a word.

Then pressing Shift+Ctrl+Right or Shift+Ctrl+Left twice selection will select white spaces between two words.

like image 141
Chandrayya G K Avatar answered Jan 25 '26 11:01

Chandrayya G K



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!