2

I have a problem with the right and left keys on Eclipse. Until now, I have used Eclipse on Windows platform and it lets me open the child elements when I clicked on the right arrow key and it closed the child elements with the left arrow key. I switched to the Ubuntu and these keys do not open/close the child elements anymore on Eclipse.

This is the default case:

and then, when I clicked on right arrow key, it opened the child elements like that;

After clicking on right arrow key:

Even if I looked the keys in the settings, I could not find the shortcut entry for this behaviour in the settings of the Eclipse.

Lii
  • 11,553
  • 8
  • 64
  • 88
  • 2
    This is probably a function of the native control that Eclipse uses for the Tree and can't be changed in Eclipse. – greg-449 Mar 29 '17 at 13:40
  • This is not really a [duplicate](http://stackoverflow.com/questions/4747264) since this is not about the package explorer and it is not about expanding nodes without the shift-key. – Lii Mar 30 '17 at 06:57

1 Answers1

2

I do not know which shortcut entry in Eclipse but when you use the Eclipse on Ubuntu, you can get the same behaviour with shift + left/right arrow keys instead of onyl left/right arrow keys.

In order to change the behaviour on Ubuntu, please have a look at this post and the answer of @big data nerd should work on newer versions of Ubuntu (tested)

I hope this helps.

Community
  • 1
  • 1
Ad Infinitum
  • 3,560
  • 27
  • 33
  • Are you sure this expands only *one* level of nodes, and not **all* nodes? I have a vague feeling Shift+Right expands all nodes on Ubuntu. – Lii Mar 29 '17 at 15:14
  • 1
    @Lii I have checked after your comment and it expands only the next level, not all nodes. I have ubuntu 16.04 installed on my laptop. – Ad Infinitum Mar 29 '17 at 15:18
  • Thanks for sharing the answer's link. [The other answer](https://stackoverflow.com/a/55537016/1051589) on the same post solved my problem. – joker Feb 24 '20 at 13:07