Scroll in NetBeans Editor to Increase/Decrease Font Size!

Reading through the NetBeans API Changes List today, I came across this, which applies to 7.1 releases of NetBeans IDE:

(Jul 16 '11) org-netbeans-modules-editor-lib2: Zoom text actions added

That sounds cool and so I tried it immediately. Wooow. Works exactly as one would expect! Font size increases/decreases as I scroll (with mousewheel). Will be very handy in future NetBeans presentations. :-) On my non-mouse system, I hold down the Ctrl key and move my finger up/down in the right of the pad-thing, then everything works as expected.

You can also map the zoom in/out text actions to shortcuts of your choice. They're not mapped to anything by default; here is what I've set them to:


No need to go into/out of the Options window anymore to guess what font size works best in a particular conference room and then find out afterwards that the font still isn't large enough and then having to go back and then later finding that I hadn't set it back to the original size so that too much space is taken up during normal programming, etc.

The new zoom setting applies to the current document only and only as long as it is opened. When you close the document and reopen it, the size will be back where it was originally. It's really nice for temporary situations, i.e., quickly change the font size for immediate purposes only.

Comments:

This is indeed a good feature while presentations. The keyboard mapping features have made it really handy for all.

Thanks for sharing.

with regards
Tushar Joshi, Nagpur

Posted by Tushar Joshi on October 18, 2011 at 06:54 PM PDT #

This feature was driving me crazy! Whenever I was in the middle of Cmd+C Cmd+V and moving the mouse, I ended up screwing my font-size.

Hey, folks, the primary use cases really is not "presentation" in an IDE.

Fortunately, there is a way to supress this. Preferences > Keymap > Zoom Text In/Out > ... > Clear

Hooray! l-)

Posted by Jiri Kopsa on March 01, 2012 at 04:07 AM PST #

What is the shortcut for default zoom.?

Posted by Vidhyadharan on June 25, 2012 at 06:05 AM PDT #

Close the file and reopen it to return to the original font size.

Posted by Geertjan on June 25, 2012 at 08:35 AM PDT #

Agree with Jiri Kopsa, a little bit annoying if you active use IDE with the mouse and keyboard. But anyway, bless God, it's a customizable feature =)

Posted by Aleksey on July 17, 2012 at 02:59 AM PDT #

thanks for the turn off trick, it was driving me crazy

Posted by guest on November 15, 2012 at 10:35 PM PST #

i want to change the awful default font (and size) on the actual editor/menus/sidebars etc. is this possible? thanks

Posted by guest on February 09, 2013 at 09:33 AM PST #

Not sure about 'awful', it's fine for me and everyone I know. But, anyway,
--fontsize 20 in etc/netbeans.conf will change font size of menus, etc, to 20 pixels.

Posted by Geertjan on February 09, 2013 at 10:49 AM PST #

Post a Comment:
  • HTML Syntax: NOT allowed
About

Geertjan Wielenga (@geertjanw) is a Principal Product Manager in the Oracle Developer Tools group living & working in Amsterdam. He is a Java technology enthusiast, evangelist, trainer, speaker, and writer. He blogs here daily.

The focus of this blog is mostly on NetBeans (a development tool primarily for Java programmers), with an occasional reference to NetBeans, and sometimes diverging to topics relating to NetBeans. And then there are days when NetBeans is mentioned, just for a change.

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
12
13
14
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today