microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
163.52k stars 28.99k forks source link

Terminal is zoomed in and out to be very large or small with the mouse wheel while holding Ctrl #209670

Open StaringInfinity opened 6 months ago

StaringInfinity commented 6 months ago

Does this issue occur when all extensions are disabled?: Yes/No

Steps to Reproduce:

  1. Set "terminal.integrated.mouseWheelZoom": true
  2. Open a new vscode windows, and toggle terminal
  3. Zoom in or out terminal with the mouse wheel while holding Ctrl. terminal can be zoomed in and out to be very large or small.

https://github.com/microsoft/vscode/assets/49320365/af854838-2653-416c-9b93-47810770d0a0

This phenomenon occurs when the terminal is zoomed in and out for the first time, and the subsequent scaling is normal, with the font size increasing or decreasing by one each time

Krishna-Noutiyal commented 1 month ago

I had the same issue with the terminal zooming in and out at a large scale. Looking at the setting I found out that

  "window.zoomLevel": 1

Was causing this malfunction, if that's the case with you you can reset the zoom level to 0.

But I prefer level 1 because level 0 makes the whole UI very small. I found a workaround when messing with the zoom level, in case you want a certain zoom level you can just use decimal 😂. Yes !! like this :

"window.zoomLevel": 0.99

This solves the scaling problem in the terminal and the UI also looks good 😄