Bug 84776

Summary: [misc] Some modifier + mouse wheel could change text font size
Product: [Eclipse Project] Platform Reporter: Thorbjørn Ravn Andersen <thorbjoern>
Component: TextAssignee: Platform-Text-Inbox <platform-text-inbox>
Status: ASSIGNED --- QA Contact:
Severity: enhancement    
Priority: P3 CC: 1_0, b.muskalla, battalaykut, daniel_megert, dave, eclipse.felipe, eclipse, epnichols, gautier.desaintmartinlacaze, ggerard, golubec, kashihara, Lars.Vogel, markus.kell.r, max.gilead, mistria, NaftoliGug, paulo.fidalgo.pt, ralf, remy.suen, rm, szpanfeng, wuntoy
Version: 3.1Keywords: helpwanted, usability
Target Milestone: ---   
Hardware: All   
OS: All   
See Also: https://bugs.eclipse.org/bugs/show_bug.cgi?id=469918
Whiteboard:
Bug Depends on: 47099, 87232, 476037    
Bug Blocks:    

Description Thorbjørn Ravn Andersen CLA 2005-02-09 09:10:20 EST
I work on a laptop where occasionally the textsize of a given window in Eclipse
is inconveniently big or small.  In IE and Firefox I can use Ctrl-Mousewheel to
change the text size interactively, and it would be nice if Eclipse could do the
same.
Comment 1 Markus Keller CLA 2006-08-08 07:08:28 EDT
Ctrl+MouseWheel now jumps page-wise in text editors (in HEAD).
Comment 2 Missing name Mising name CLA 2007-05-05 19:38:19 EDT
*** Bug 185667 has been marked as a duplicate of this bug. ***
Comment 3 Dani Megert CLA 2007-07-09 06:18:39 EDT
*** Bug 125404 has been marked as a duplicate of this bug. ***
Comment 4 Dani Megert CLA 2008-03-20 06:55:22 EDT
*** Bug 192391 has been marked as a duplicate of this bug. ***
Comment 5 Ralf Ebert CLA 2009-12-14 13:27:54 EST
Bug 297577 is a duplicate of this one.

I'll try to come up with a patch for this.

IMHO the M1+Mousewheel and M1+NUMPAD_PLUS / M1+NUMPAD_MINUS text size changing is pretty well-known nowadays, especially because of Firefox. Any opinions about if Ctrl+MouseWheel should "scroll faster" or "zoom" by default in Eclipse?

IMHO there should be general-purpose "Zoom In" / "Zoom Out" commands in Platform/UI for this that are handled by text editors by changing the font size. I'll investigate existing Zoom commands in existing editors like GEF or BIRT.
Comment 6 Dani Megert CLA 2009-12-15 01:38:32 EST
*** Bug 297577 has been marked as a duplicate of this bug. ***
Comment 7 Dani Megert CLA 2009-12-15 01:39:18 EST
>Any opinions
>about if Ctrl+MouseWheel should "scroll faster" or "zoom" by default in
>Eclipse?
Scroll faster (this is already implemented - try it out ;-)

>IMHO there should be general-purpose "Zoom In" / "Zoom Out" commands in
>Platform/UI for this that are handled by text editors by changing the font
>size.
Agree. Can you please file a bug report against Platform UI and mark this one depending on your new bug? Thanks.
Comment 8 epnichols CLA 2011-12-19 21:00:27 EST
This was reported 6 years ago, but it appears to not be fixed yet.... anyone able to work on this?

I'm working on Eclipse in Mac and this functionality is still missing... there is an independent plugin to add a keyboard shortcut, but even that only seems to be for Windows....
Comment 9 Dani Megert CLA 2011-12-20 02:46:53 EST
(In reply to comment #8)
> This was reported 6 years ago, but it appears to not be fixed yet.... anyone
> able to work on this?

No, nothing has been done in this area.
Comment 10 Felipe Heidrich CLA 2012-01-30 12:30:13 EST
*** Bug 369091 has been marked as a duplicate of this bug. ***
Comment 11 Felipe Heidrich CLA 2012-01-30 13:02:10 EST
Bug 369091 suggests different ways to control the zoom factor:

"It could be created by use:
- Shift/Ctrl + Scroll_Wheel (example in GIMP);
- Scroll Widget (example in LibreOffice);
- Some key press (example - Ctrl+Shift+'+' Ctrl+Shift+'-')..."
Comment 12 Dani Megert CLA 2012-12-20 03:04:01 EST
See also bug 396949.
Comment 13 Dani Megert CLA 2013-11-18 10:38:31 EST
*** Bug 421929 has been marked as a duplicate of this bug. ***
Comment 14 Dani Megert CLA 2014-01-22 06:01:48 EST
*** Bug 426328 has been marked as a duplicate of this bug. ***
Comment 15 Naftoli Gugenheim CLA 2014-05-28 00:42:29 EDT
+100, any update?
Comment 16 Paulo Fidalgo CLA 2014-09-23 07:11:40 EDT
Voted! Any chance to get this?
Comment 17 Ralph Moenchmeyer CLA 2015-05-12 11:33:50 EDT
If someone should ever realize a zoom function, please, take care to make the zooming available independently for different Eclipse (Luna) windows. Such that you can zoom in/out in one window with a different factor than in another eclipse window. 

This would really be helpful for people who work with several screens having different resolutions.
Comment 18 Naftoli Gugenheim CLA 2015-05-12 12:18:18 EDT
I think it would be best if it's per editor
Comment 19 Mickael Istria CLA 2015-06-11 05:51:44 EDT
(In reply to Dani Megert from comment #7)
> >Any opinions
> >about if Ctrl+MouseWheel should "scroll faster" or "zoom" by default in
> >Eclipse?
> Scroll faster (this is already implemented - try it out ;-)

Would it be possible to use Shift+Scroll as faster scroll (shift usually means bigger in text editors, so Shift+Scroll is a more intuitive shortcut for bigger scroll) ?
Then we could allow Ctrl+Scroll for Zoom, as in Firefox.

> >IMHO there should be general-purpose "Zoom In" / "Zoom Out" commands in
> >Platform/UI for this that are handled by text editors by changing the font
> >size.
> Agree. Can you please file a bug report against Platform UI and mark this
> one depending on your new bug? Thanks.

Opened https://bugs.eclipse.org/bugs/show_bug.cgi?id=469918
Comment 20 Dani Megert CLA 2016-12-14 04:48:53 EST
*** Bug 509110 has been marked as a duplicate of this bug. ***