coder/code-server

Setting Zoom in Preferences/via keyboard shortcut

ct2057 opened this issue · 1 comments

What is your suggestion?

In Visual Studio Code, there is a configurable item in Settings called 'Zoom', which allows you to set the zoom level of the overall IDE. This can also be changed by using the keyboard shortcut Ctrl/Cmd and + for zoom in, and - for zoom out.
However, Code Server does not have any such functionality - either as a setting or keyboard shortcut.

Why do you want this feature?

If running code server via a standard web browser, this is probably not much of an issue as you can set the web page zoom level via the respective web browsers own zoom settings. However, if you are using Code Server in a browser that hides the standard browser controls or in an Electron window, then it is impossible to zoom the IDE in and out.

In some cases, for example, if you have made Code Server a web app via a browser on a tablet - such as Safari on an iPad - reopening Code Server in the resulting web app could make the IDE far too small to be useable - especially when using an external display.

Are there any workarounds to get this functionality today?

Use Code Server in a standard web browser, instead of via Electron/web apps created from aforementioned web browsers.

Are you interested in submitting a PR for this?

No.

I do think a zoom is a good idea, but I think this is out of scope for code-server. We try to just wrap VS Code and fix any bugs related to self-hosting.

Unfortunately, I think reporting it upstream to VS Code may not work either because apparently browsers do not let us do anything with zoom: microsoft/vscode#204026 (comment) 😢