How to Zoom In and Out in PyCharm: Quick Guide
In this article
You can zoom in and out of the code editor, file tree, and other UI elements in PyCharm using keyboard shortcuts or mouse gestures. This adjusts the font size for better readability without changing your project files. No additional software is required; these features are built into the IDE.
What You'll Need
- A computer running Windows, macOS, or Linux
- An active installation of JetBrains PyCharm (Community or Professional edition)
- A functioning keyboard with modifier keys (Ctrl/Cmd) and a mouse or trackpad
Step-by-Step
- Zooming via Keyboard Shortcuts (Recommended): This is the fastest method. Hold down the Ctrl key (on Windows/Linux) or Cmd key (on macOS) and press the + (plus) key to zoom in, or the - (minus) key to zoom out. Release both keys after pressing. The text in the editor, project view, and tool windows will scale immediately.
- Resetting Zoom to Default: If you have zoomed too far in or out, hold Ctrl (or Cmd) and press 0 (zero). This resets the interface font size to the default setting defined in your preferences.
- Zooming via Mouse Wheel: On most systems, holding Ctrl (Windows/Linux) or Cmd (macOS) while scrolling the mouse wheel up or down will also adjust the zoom level. Scroll up to zoom in, scroll down to zoom out.
- Adjusting via Settings (Permanent Change): If you prefer a fixed font size rather than temporary zooming, go to
File > Settings(Windows/Linux) orPyCharm > Preferences(macOS). Navigate toEditor > Font. Here, you can change the "Size" dropdown to your preferred point size. Click "Apply" and then "OK". This changes the base font for all future sessions. - Changing Color Scheme Contrast: Sometimes readability issues are due to color contrast rather than size. Go to
Settings/Preferences > Editor > Color Scheme. Select a scheme like "Darcula" (dark) or "Default Light+" (light) to improve visibility if zooming alone does not help.
Common Mistakes
Many users accidentally trigger system-level window resizing instead of editor zooming. Ensure you are holding the correct modifier key (Ctrl vs Alt). Another common error is confusing the zoom shortcut with the "Find Action" shortcut. If you press Ctrl+Shift+A, you open the action search, not the zoom menu. Additionally, some laptops require holding the Fn key along with the function keys if the + and - keys are shared on the same key as F11/F12, though this is rare for standard alphanumeric keys.
Tips
Use the zoom feature temporarily when reading large blocks of code, but rely on the Editor > Font settings for your permanent daily driver setup. This ensures consistency across all projects. If you use multiple monitors with different DPIs, PyCharm may auto-scale differently on each screen. You can force specific scaling in Help > Change VM Options by adding -Dsun.java2d.uiScale=1.5 (adjust the number as needed), but test this carefully as it affects the entire UI, not just text.
Troubleshooting
If the zoom shortcuts do not work, first check if another application has hijacked the key combination. Close other programs to test. If you are on a Mac, ensure that System Settings > Keyboard > Keyboard Shortcuts > Mission Control is not interfering with Cmd combinations. For persistent issues, restart PyCharm. If the UI remains distorted, reset the window layout by going to Window > Reset Layout. This restores all panels to their default positions and scales.
Frequently Asked Questions
Does zooming in PyCharm save my changes?
No. Zooming only affects the visual display of the IDE. It does not alter the source code files or commit any changes to your repository.
Can I zoom only the editor, not the sidebar?
The standard keyboard shortcuts zoom the entire UI, including the Project view and Tool windows. To zoom only the editor, you must manually set the font size in Editor > Font settings, which applies globally to text areas.
Why did my zoom reset after restarting PyCharm?
This usually happens if you used the temporary zoom shortcuts (Ctrl++) instead of changing the permanent font size in Settings. Temporary zoom levels are session-based. Permanent changes are saved in your user configuration.
Is there a limit to how much I can zoom?
Yes. There is a minimum and maximum font size limit defined by the operating system and the Java Virtual Machine running PyCharm. Typically, you can zoom between 8pt and 72pt effectively before elements become unusable.
How do I fix blurry text after zooming?
Blurry text often occurs on high-DPI displays. Ensure you are using the latest version of PyCharm, as newer versions handle HiDPI scaling better. You can also try enabling Help > Change VM Options and adding -Dawt.useSystemAAFontSettings=on to improve font rendering clarity.