I believe it would be useful to be able to zoom in
and out of the editor window. This would help
bring more code into focus (zoom out) when
necessary relatively easily.
I do not program for a living, so I am not sure if
professional programmers care for this feature,
but virtually every editor application (word
processors, spreadsheets etc) has a zoom function,
so why not code editors?
I second this request. In my case it would be useful when I'm trying to get an overview of an existing code file that's
several thousand lines long. Something like Ctrl-scrollwheel; Firefox also does it.
*** Issue 73747 has been marked as a duplicate of this issue. ***
I think that this is very easy, only change font size in editor press Ctrl-MouseScrollWheel. I vote for it!!!
It's very important for presentations. If listeners can't see small text you can fast change font size.
*** Issue 94514 has been marked as a duplicate of this issue. ***
I would also love this feature. It's the only missing feature preventing me from using NetBeans as my primary IDE.
This would be great for anyone with vision impairment. I can't always read everything perfectly. Sometimes if it's a
complicated piece of code, it helps to zoom it in a lot to see it clearly. But I can't keep it zoomed all the time
because I can't see enough of everything else. Changing the font size back and forth is too time consuming.
Ctrl+Scroll, Ctrl++, Ctrl+-
Those are all standard zoom shortcuts in many programs. FF, Word, SciTE, Notepad++
I agree. I think this would be a good addition to the IDE.
*** Issue 163658 has been marked as a duplicate of this issue. ***
Based on number of votes and duplicates, changing priority to P3 ..
For as well, this is the main feature preventing me from using NetBeans as my primary IDE. Please, somebody, implement it!
I'm still using Notepad++ because no decent PHP IDE provides a way of changing the font that isn't 3-5 levels deep. Even a +/- button on the menu would be something. I can go digging through menus every single time I want to sit forward or lean back.
This is a must feature. I do not know why nobody at netbeans is listening to us
*** Bug 181602 has been marked as a duplicate of this bug. ***
(In reply to comment #11)
> I'm still using Notepad++ because no decent PHP IDE provides a way of changing
> the font that isn't 3-5 levels deep.
Komodo does (as easily as in Firefox and Notepad), and it's much better for developing in PHP than Notepad++.
In bug 181602, Vitezslav Stejskal asked: "Why do you need this?"
Vitezslav, would you be satisfied with this answer: to be comfortable reading text on the screen and be able to adjust font size quickly and conveniently.
Why do you, guys, develop Netbeans IDE? All development can be done with plain Notepad. I guess you do it because using a custom made IDE makes developing software easier, more comfortable, faster, etc.
Maybe others will have more to add to this.
(In reply to comment #15)
> In bug 181602, Vitezslav Stejskal asked: "Why do you need this?"
> Vitezslav, would you be satisfied with this answer: to be comfortable reading
> text on the screen and be able to adjust font size quickly and conveniently.
:-) Sure. I asked, because I for example have never ever needed to change the font size. Or if I did, I changed it once and that was it. But that's just me and other may have different needs, hence the question.
Vitezslav, you might hardly ever change the font size, but have you ever used an editor where that was even an option to do with ease if you wanted to?
If not, I think if you had you might realize it's more useful than you realize. Haven't you ever been coding late at night and just wanted to finish up the end of a project or function, before calling it a day, but you're eyes were getting a bit droopy. If it's through a number of menu's, you might not think about changing the font size, but suppose it was a mouse scroll away. You could simply zoom in a bit and it eases things up.
Or suppose you are nice and alert, and you're trying to get a better picture of what you have going on around the line you're working on. Well, you could scroll up and down, or you could ctrl+scroll zoom out. Then you could see much more code around the piece you're looking at.
I use it for both those reasons out of convenience, but my main use it because my vision isn't perfect. I have glasses, but even with those I'd need to keep the font at too large a size all the time, but then I wouldn't be able to see enough lines of code around where I'm working. So I adjust it to however my eyes are feeling, and if I need to see more, I can move closer to the screen and zoom out the size. Also, if I'm hunched over, and then decide to lean back in my chair, I move around a lot while just sitting there. Whenever I need to move further or closer from the screen, I can adjust the font quickly to my liking.
I'm sure there are a lot of other uses.
One feature that would be awesome to go along with zooming in/out, that I haven't seen before, is zooming back in on the area the mouse is over. When implementing the zoom, you have to decide which area will be the focal point, the place to zoom in/out on. I'd assume the most logical would be the center of the screen if using ctrl+plus or ctrl+minus. But if using the mouse, it would be great if it would focus on the line the mouse cursor was sitting on. That way it could be used for quick navigation. Zoom out till the font size is like 1, you'll still see the color coding and shapes of the functions and comments, then move the mouse over where you want to go, and zoom right back in. Yeah there's the code browser with the class/functions list, but this could be another method.
I teach Intro to Java and AP Computer Science at a high school. I use Netbeans, but it is very frustrating NOT to be able to zoom-in to enlarge the text so that students at the back of the room can read whats on the screen.
The Output Window works fine with "Control-Scroll". Please give the Editor Window the same capability.
Any movement on this accessibility issue?
I´m missing this feature too in NetBeans!!! This is clearly a MUST! We have an ERP application written entirely in Java using Netbeans, and we at our company miss this feature as it would make things easier when as we have thousands of lines of code.
We are developing a .Net application (for the first time) and guess what?
Microsoft Visual Studio DOES have this feature! What are the people at Netbeans waiting for to introduce this feature?
Im a Java fanboy, but I must admit this is a clear advantadge of Microsoft´s IDE.
Anyone remember this is sitting here... dead?
Miloslay, have you taken a look at it at all? Seems to be assigned to you but you haven't even commented.
According to his linked in he's not even working on netbeans anymore :(
Can someone please help move this along?
I'm sorry I've been busy with view-hierarchy related issues.
Having in mind how things work regarding editor settings etc. this is a bit tricky to implement. With the current new view hierarchy (issue 121357) this could be somewhat easier since it respects editorPane.setFont() and assuming tokens use just default-font's bold/italic derivations that would just suffice to change the component's font and the rest would trigger automagically.
However still if there would be an extra font used for any of the colorings (e.g. default font would be Monospaced and e.g. a keyword token would be using Liberation font) then the keywords would stay unchanged during zooming :( Not frequent case but it should possibly be covered.
So I tend to have an extra property like
that the view hierarchy would respect.
I'll work it out once the NB7.0 work is finished so that it's available early in dev builds for testing.
(In reply to comment #22)
> I'll work it out once the NB7.0 work is finished so that it's available early
> in dev builds for testing.
Is this feature ready for testing?
*** Bug 112787 has been marked as a duplicate of this bug. ***
Is this coming along? Any updates?
Yes, I'm working on both this and issue #89607.
Thank you! Thank you! Thank you!
Being able to quickly change the font size of code in the editor will make Netbeans an even better tool for teaching Java to a room full of students.
Currently zooming works for Ctrl+Wheel up/down. Suggested shortcuts Ctrl with +/- are reserved for expanding/collapsing folds. I'm wondering if any shortcut for zooming is necessary at all since the feature will likely be mostly used in presentations where mouse is being used heavily.
Since the feature changes default font size for the given text component the views need to be rebuilt and repainted. Although cursor position gets retained the zooming is not as visually smooth like typical pixel zooming but it should work fine.
Integrated into 'main-golden'
User: Miloslav Metelka <firstname.lastname@example.org>
Log: #41807 - Zoom editor window as in FF/Opera/Word.
It's essential that there's a short cut available for the zooming. Presentations are tiny edge case. It's a standard feature in many editors and is very functional for every day use. It's both utility and accessibility. Is there a shortcut manager somewhere in NetBeans where every program shortcut feature can be managed? Can we manually set the short cut and remove the code folding one?
Ctrl+/- has become pretty universally standard for zooming. Something+left/right would make more sense for code folding.
If not, would Ctrl+Shift and +/- be available?
I've added Zoom Text In/Out actions:
Shortcuts can be assigned (or override) in Tools->Options->Keymap search for "zoom".
Ctrl+Shift +/- are currently reserved for Expand/Collapse All Folds but feel free to override the shortcut in the Options.
Integrated into 'main-golden'
User: Miloslav Metelka <email@example.com>
Log: #41807 - Zoom editor window as in FF/Opera/Word - Zoom Text actions added.
*** Bug 171384 has been marked as a duplicate of this bug. ***
This is related to Issue 203243 (requesting alteration, removal of, or the ability to configure this "enhancement").
I verified that this is implemented and works in nightly build 201110250600, exactly as I had described a couple of years ago in #112787.
Also, it's a very nice touch that the line numbers in the editor's gutter also increase/decrease in size along with the text of the editor itself. This will make it very handy to reference specific lines of code when doing reviews or giving presentations, both of which are now going to be a lot easier with NetBeans.
I'd like this too. Often I do this because I'm so used to it with firefox. Also it would be nice if I could have different zoom levels for each document, so I could have the code I'm focused on and the same code zoomed out for reference.
(In reply to comment #28)
> Currently zooming works for Ctrl+Wheel up/down.
This doesn't work. Alt+Wheel up/down does.
Notepad touchpad users are out of luck with the current implementation.