vscode icon indicating copy to clipboard operation
vscode copied to clipboard

Zoom In/Out should not modify whole window.

Open MiguelLattuada opened this issue 10 years ago • 8 comments

Editor window should not be modified when zooming in/out. screen shot 2015-12-15 at 5 46 52 pm

Instead of that, just code rows (.view-lines div) should be scaled (transformed or font resized). screen shot 2015-12-15 at 6 02 23 pm

This is kind of shortcut for resizing, does not mean anything. screen shot 2015-12-15 at 6 15 24 pm

And sure, kind of zoom status should be displayed at the bottom status bar. screen shot 2015-12-15 at 6 04 12 pm

  • Images under bolded text, has been modified.

MiguelLattuada avatar Dec 15 '15 21:12 MiguelLattuada

Don't agree: the current zoom behavior is exactly what I want. You can always change the editor.fontSize setting for larger or smaller editor text. Though it's true that there aren't shortcut keys for that.

stkb avatar Dec 15 '15 22:12 stkb

@alexandrudima assigning to you because of the short cut request.

dbaeumer avatar Dec 16 '15 08:12 dbaeumer

I should add though, thanks to the new persisted window.zoomLevel setting, it's now more a set-and-forget thing for me. So as long as that stays, I wouldn't mind if the existing ctrl+-/= shortcuts were remapped to just change the editor text size instead.

stkb avatar Dec 16 '15 08:12 stkb

Don't agree: the current zoom behavior is exactly what I want.

+1 It's quite a useful feature. Unfortunately zoom level that is set in work session isn't restored after VS Code is closed and the reopened (#291).

gamtiq avatar Feb 24 '16 08:02 gamtiq

+1 Please map ctrl+- to editor view, or better yet, whichever view has focus. The icons in the top left changing size makes it obvious that the whole window is just one big webview ... personally, I would not expect the icons to be zoomable via ctrl-+

purplecabbage avatar Apr 20 '16 20:04 purplecabbage

I would really like to be able to set CTRL+/- to increase editor.fontSize and editor.lineHeight equally. The current zoom behavior is not good for me, because I work with different languages and some have characters with smaller fonts (Thai, Chinese) and I would like to be able to easily increase the font size when working with those characters.

I recently looked into hacking this out in an extension, only to find out that it's basically impossible to set a user preference via an extension (which makes sense), so it appears there's currently no way to do this.

anyong avatar Apr 24 '16 14:04 anyong

-- Sorry for the English, I used Google Translator --

Based on issue #14979 with comment.

1- Ctrl + + It should zoom in on the editor, the file we're moving, not the zoom of the whole program. 2- Ctrl + - You should zoom out within the editor, the file you are moving, not the zoom of the entire program. 3- Ctrl + 0 You should zoom back to the default, the file you are moving, not the zoom of the entire program.

4- Ctr + +, Ctr + - should work the same way when we use "editor.mouseWheelZoom", by only zooming the file. And using Ctrl + 0 returns to the default.

5- Ctr + = You should do nothing. The zoom continues. You must unlink this function. 6- Ctrl + 0 of the non-numeric keyboard does not reset the zoom.

These shortcut keys should be valid for both numeric and non-numeric keys. In the menu you should change the registration Ctr + = by Ctrl + +

Why not set specific sizes for the UI? Maybe some problems mentioned by @alexandrudima would decrease!!

In fact I am 100% in favor of eliminating the entire UI zoom we're shipping with, it causes many issues with font anti-aliasing for example and I have to maintain extraneous code to work around it (i.e. not using translate3d when the UI zoom is not 100%)

Example: Small, Normal, Large, Extra large. To set proportions, do a search with someone who uses sizes other than their normal size.

Tekbr avatar Dec 09 '16 10:12 Tekbr

This feature request will not be considered in the next 6-12 months roadmap and as such will be closed to keep the number of issues we have to maintain actionable. Thanks for understanding and happy coding!

bpasero avatar Nov 16 '17 11:11 bpasero