Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Window-specific zoom settings #185836

Closed
iddm opened this issue Jun 22, 2023 · 12 comments
Closed

Window-specific zoom settings #185836

iddm opened this issue Jun 22, 2023 · 12 comments
Assignees
Labels
feature-request Request for new features or functionality on-testplan workbench-auxwindow Issues related to use of auxiliary ("floating") windows. zoom VS Code window zoom issues

Comments

@iddm
Copy link

iddm commented Jun 22, 2023

I would like to have two windows on two monitors with different DPI (1440p and 2160p) and be able to set the zoom/scaling in both the way I like. Currently, the zoom applies to all the windows of vscode, so I can't have two windows with different scaling, so it is always too big on one monitor and/or too small on another.

@bpasero bpasero added zoom VS Code window zoom issues feature-request Request for new features or functionality labels Jun 22, 2023
@bpasero
Copy link
Member

bpasero commented Jun 22, 2023

This is already possible if you store the window.zoomLevel setting in workspace settings. If you do not want to share that with other people, you can also create a multi-root workspace and have the setting there.

@bpasero bpasero removed their assignment Jun 22, 2023
@vscodenpa vscodenpa added this to the Backlog Candidates milestone Jun 22, 2023
@vscodenpa
Copy link

This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

@iddm
Copy link
Author

iddm commented Jun 22, 2023

window.zoomLevel

Isn't this a per-project option? I want to have two windows opened with the same project on two different monitors.

@bpasero
Copy link
Member

bpasero commented Jun 22, 2023

@vityafx that is actually not possible with how VS Code works. the only way to open the same project in 2 windows is by creating 2 multi root workspaces with the same folders and open them in 2 windows. So you can do everything you want, but it has to be via multi root workspaces: https://code.visualstudio.com/docs/editor/multi-root-workspaces

@iddm
Copy link
Author

iddm commented Jun 22, 2023

I will create another feature request to make it possible, since I see no reason why it shouldn't be. Another thing is that the original question still the remains unanswered - I don't want to always have one project on one monitor and another project on my second monitor, I want to be able to quickly switch at any time. Going to the workspace settings and adjusting the number here is certainly not contributing to the user experience of mine, and, I am sure, or others, so a solution should be there to this problem. I may rephrase the problem to be more generic: the visual studio code has no support for multi-dpi setup whatsoever and is impossible to configure reasonably for that.

Still, regarding the per-project option, there should be a per-window setting instead. There is a reason for having multiple windows in graphical user interfaces - one of which is customisation. I am beyond sure, that the vscode code can work with window handles (HWND), so I don't see any obstacle to that too.

Summing up, the feature request still stands: per-window configuration, with at least the possibility for changing the scaling.

@bpasero
Copy link
Member

bpasero commented Jun 22, 2023

@iddm
Copy link
Author

iddm commented Jun 22, 2023

Please first use issue search before creating new issues: #43188

Prior issues that are duplicate to this one:

* [Different zoom levels per monitor/display #147073](https://github.com/microsoft/vscode/issues/147073)

* [Allow separate windows to have separate zoom settings #143663](https://github.com/microsoft/vscode/issues/143663)

* [Multiple zoomlevel for different monitor resolutions. #109480](https://github.com/microsoft/vscode/issues/109480)

* [Appearance settings should be specific to each window #108661](https://github.com/microsoft/vscode/issues/108661)

* [Allow separate windows to have individual zoom settings #72011](https://github.com/microsoft/vscode/issues/72011)

Unfortunately, not a single item from this list has the issue addressed.

@elektronik2k5
Copy link

Hard to believe that this is still an issue in 2023. My current very awkward and brute force workaround for this bs limitation is to have VSCode insiders installed side by side along with the stable channel and open VSCode on one screen and VSCode insiders on the other. If I ever need 3, I guess I'll have to use VSCodium and compile Code - OSS from source for the fourth one.

🤦🏻

@vscodenpa
Copy link

This feature request has not yet received the 20 community upvotes it takes to make to our backlog. 10 days to go. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

@vscodenpa
Copy link

🙂 This feature request received a sufficient number of community upvotes and we moved it to our backlog. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

@vscodenpa vscodenpa modified the milestones: Backlog Candidates, Backlog Aug 18, 2023
@bpasero bpasero added the workbench-auxwindow Issues related to use of auxiliary ("floating") windows. label Oct 25, 2023
@bpasero bpasero self-assigned this Oct 25, 2023
@bpasero bpasero removed their assignment Nov 15, 2023
@bpasero bpasero changed the title Window-specific zoom/font settings. Window-specific zoom settings Dec 19, 2023
@bpasero bpasero self-assigned this Dec 29, 2023
@bpasero bpasero modified the milestones: Backlog, December / January 2024 Dec 29, 2023
@bpasero
Copy link
Member

bpasero commented Jan 3, 2024

Adding new commands that allow to zoom in the active window only:

image

This zoom state is associated with the state of that window and will restore as such until either the zoom setting is changed (which then applies to all windows) or the window is closed.

Please give it a try in our insiders, you can give our preview releases a try from: https://code.visualstudio.com/insiders/

@bpasero
Copy link
Member

bpasero commented Jan 4, 2024

After discussion in the team, we decided to change this feature slightly (PR #201791). Rather than introducing separate commands for zooming the active or all windows, there is now a setting window.zoomPerWindow to control this for the existing commands.

Among other things, this would allow us to actually change the default behaviour and let the zoom commands only change the active window.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request Request for new features or functionality on-testplan workbench-auxwindow Issues related to use of auxiliary ("floating") windows. zoom VS Code window zoom issues
Projects
None yet
Development

No branches or pull requests

5 participants