How to Zoom In and Out in Visual Studio Code
Adjusting the user interface size in Visual Studio Code can greatly improve readability and reduce eye strain. This article provides a quick guide on how to zoom in and out to change the overall font size of the VS Code UI, including the sidebar, menus, and editor, using keyboard shortcuts, the command menu, and application settings.
Method 1: Keyboard Shortcuts
The fastest way to adjust the zoom level of the entire Visual Studio Code interface is by using keyboard shortcuts.
- To Zoom In (increase size):
- Windows/Linux: Press
Ctrl+=(orCtrl+Shift+=) - macOS: Press
Cmd+=(orCmd+Shift+=)
- Windows/Linux: Press
- To Zoom Out (decrease size):
- Windows/Linux: Press
Ctrl+- - macOS: Press
Cmd+-
- Windows/Linux: Press
- To Reset Zoom to Default:
- Windows/Linux: Press
Ctrl+Numpad 0 - macOS: Press
Cmd+Numpad 0
- Windows/Linux: Press
Method 2: Using the View Menu
If you prefer using the mouse, you can control the zoom level directly from the application menu.
- Click on View in the top menu bar.
- Hover over Appearance.
- Click on Zoom In, Zoom Out, or Reset Zoom to adjust the interface to your preference.
Method 3: Adjusting the Zoom Level in Settings
For precise control over the UI scale, you can set a specific zoom level in the VS Code settings.
- Open the Settings editor by pressing
Ctrl+,(Windows/Linux) orCmd+,(macOS). - In the search bar at the top, type
window.zoomLevel. - Locate the Window: Zoom Level setting.
- Modify the value:
- 0 is the default size.
- Positive numbers (e.g.,
1,1.5,2) will zoom in. - Negative numbers (e.g.,
-1,-1.5,-2) will zoom out.
The changes will apply instantly to the entire workspace.