I want to enlarge the code I've written in NetBeans so it's easier to read. I can enlarge the output by using ctrl and '+', but it doesn't work on the code. Does anyone know how to do this?
7 Answers
Alt+Scroll Wheel (on mouse) will do it. If you want to change the font size, go to Tools>Options>Fonts&Colors [note: this is a large icon/tab]. From there, in the Syntax tab (default) click Default, then the '...' button next to Font. Change the font size here, and click Okay. Other fonts inherit this size, so that should be the only change.
Happy coding!

- 3,185
- 1
- 23
- 28
-
Thanks, but I don't have a Fonts&Colors under Tools on my NetBeans @aring – George Tomlinson Aug 31 '13 at 23:57
-
Which version of NetBeans are you using? – Andrew Ring Sep 01 '13 at 00:21
-
Tools/Options is most likely meant here.. the dialog then contains the "fonts&colors" panel. On mac the dialog is under Netbeans/Preferences – mkleint Sep 01 '13 at 08:12
-
I'm using version 7.3.1 @aring, and it was Tools>Options>Fonts&Colors. I was a bit fatigued last night. Thanks. – George Tomlinson Sep 01 '13 at 12:34
-
Oh, you're right, sorry I accidentally left out the Options in the path! Corrected now. – Andrew Ring Sep 01 '13 at 15:47
-
2Till now every time i accidentally zoom in or zoom out I restarted the Netbeans IDE because i didn't know what i clicked. Alt + Scroll also works on Netbeans 8.0. – AdrianES Jul 15 '14 at 11:33
-
(see also)[https://stackoverflow.com/questions/24081513/how-to-zoom-text-in-netbeans-without-mousewheel] – Adi Prasetyo Nov 19 '18 at 09:11
press { ALT (your keyboard) + Scroll wheel (your mouse) };

- 8,346
- 16
- 39
- 53

- 145
- 1
- 10
NetBeans 7.2 changes the behaviour slightly – now you need to initiate a press down click on the scroll wheel whilst scrolling to increase/decrease the font size. No keyboard assistance required! - ref http://www.craiglotter.co.za/2012/10/16/how-to-quickly-increase-or-descrease-the-font-size-in-netbeans-ide/

- 19,412
- 7
- 65
- 47
-
8Does anyone kown how to get back to Standard Zoom Level? I alway accidentaly scroll and zoom inside the code. – kasoft Dec 28 '16 at 12:41
-
@kasoft Maybe a little workaround, but it works: note the number of lines of code visible in editor tab with "no zoom" and then scroll up/down in tab where You have accidentally change zoom level to match the number of lines. On my 24" screen I can see about 120 lines of code with notifications/output/terminal tab opened below editor. – Jakub Rakus Jun 10 '19 at 10:09
Just press "alt" and scrool and normally it's oke

- 51
- 4
-
1This solution was already given in [this answer](https://stackoverflow.com/a/50808646/9199167) by [PichetNart](https://stackoverflow.com/users/3538450/pichetnart). Please check existing answers and upvote those you find helpful, instead of adding duplicates. Thanks! – Max Vollmer Sep 28 '18 at 13:28
If you want to zoom In/Out the code file /source window use this below method.
press Alt key+ scroll Mouse wheel up for Zoom In and scroll Mouse wheel down for Zoom Out
If you want to zoom In/Out the output window/terminal use this below method.
press Ctrl key+ scroll Mouse wheel up for Zoom In and scroll Mouse wheel down for Zoom Out

- 336
- 4
- 12
Lots of "mouse driven" answers here. But not everyone uses a mouse anymore. To Zoom In/Out of the Output Window of Netbeans 11.x do this, it's simple.
Press Ctrl while pressing the Arrow Up (to zoom in) and Arrow Down (to zoom in) keys on your keyboard.

- 17,736
- 16
- 35
- 75
-
This works only in the output window. Not in a source file window. – Luca Venturini Mar 23 '23 at 19:42