tags:

views:

194

answers:

3

I've been trying to find a way to scroll the text horizontally with my scrollwheel in Eclipse, similar to the way you can do it in Textpad. In Textpad if you hold ctrl while you scroll vertically it will scroll horizontally. Does anybody know if there is a configurable setting somewhere in Eclipse that will allow this? I've looked all over the "keys" setting page without being able to find it, and Google/Stack Overflow searches haven't turned anything up for me.

Thanks.

A: 

I guess this depends more on your OS than on Eclipse. For instance on Mac OS it's Shift + Scrolling.

Fabian Steeg
I'm using Windows XP at work, I don't believe there's anything like that built in.
Greg
+1  A: 

You have a plugin supposed (not tested) to support horizontal scrolling.

But without plugin, SWT does not support horizontal scrolling on Windows.
Its support is planed for 3.6 though. (since 3.6M2, actually -- September 18, 2009)

New event constants have been added for horizontal mouse wheels.
See SWT.MouseHorizontalWheel and SWT.MouseVerticalWheel.

VonC
I tried installing this, but it doesn't look like it works. Are you saying it's not supposed to work because SWT doesn't support it on Windows yet?Also it was complaining that I didn't install it in an "Easyclipse" directory, is this supposed to work with an installation of the regular Eclipse IDE?Thanks for the suggestion, I'm going to keep messing around with it...
Greg
@Greg: yes that plugin is for a special Eclipse distro I am not familiar with. SWT provides a common API for accessing native widgets across a spectrum of platforms, and it does not interpret correctly wheel messages on Windows before 3.6. Now, those messages are formerly designated and will be interpreted for all OS.
VonC
Interesting, I can't seem to get it to work with the base Eclipse packages. I may try again at home over the weekend, I don't want to waste a ton of time on this while I should be coding.
Greg
A: 

For me the best way while using eclipse or for that matter any IDE, is to have a new line char at the end of screen. I feel that to use horizontal scrolling to view data becomes bit difficult while going back and forth and I would like all code to be visible to me always. If the code you are trying to view requires you to use horizontal scroll bar then try to format it by using Ctrl+Shift+F.

Harsha
I'd rather not format the code, I'm working on a rather large codebase and I don't want to force everyone else on the team to do a ton of changes next time they sync up for a commit.Thanks for the suggestion though!
Greg
I still feel formatting the code would solve your problem. This would be a one time effort as opposed to the struggle you are facing to view the code.
Harsha
It would be a one time effort, but I don't feel it's too hard to scroll horizontally if there's a key combo I can use. Also I'm new at this company, there's no way I want to be committing huge changes when it's only formatting.
Greg
Oh ok.. I can understand you problem..
Harsha