Is there a way in vscode to only zoom in on the editor

前端 未结 8 1310
[愿得一人]
[愿得一人] 2020-12-29 02:46

Currently, when you zoom in while using vscode, the editor, side panel, and icons all get magnified.

Does anyone know how to get functionality similar to Atom where

相关标签:
8条回答
  • 2020-12-29 03:05

    Out of Box solution for zoom in/out for text only:

    1. Ctrl+Shift+P (or View->Command Palette...)
    2. Type Open User Settings
    3. Edit settings.json
    4. Add "editor.mouseWheelZoom": true
    5. Save it.

    You can use your mouse wheel to zoom in or zoom out only text in the text box.

     

    0 讨论(0)
  • 2020-12-29 03:07
    1. Ctrl + Shift + P to open the Command Palette
    2. Type Editor Font Zoom In
    3. Press Enter
    4. Repeat until the font is the desired size
    0 讨论(0)
  • 2020-12-29 03:11

    You can go to the keyboard shortcuts page, then search up "Editor Font Zoom", there should be some shortcuts you can bind to keys.

    0 讨论(0)
  • 2020-12-29 03:12

    Update Version 1.24 - May 2018

    There are new commands for to zoom in/zoom out text in editors only:

    • Editor Font Zoom In
    • Editor Font Zoom Out
    • Editor Font Zoom Reset

    By default they don't have any keybindings assigned:

    0 讨论(0)
  • 2020-12-29 03:15

    To change the keyboard shortcuts so they only zoom the editor font, you just need to:

    1. Open the Command Palette (Control+Shift+P) and type Keyboard Shortcuts. Choose Preferences: Open Keyboard Shortcuts.
    2. Search for zoom. You'll see a few results, including those for global zoom and editor font zoom. 3)If you want to replace the global zoom shortcuts with editor font zoom, you first need to remove the keybindings from View: Zoom In and View: Zoom Out. You can right-click them and choose Remove Keybinding or select them and hit the delete key.
    3. Add the new keybindings for Editor Font Zoom In and Editor Font Zoom Out. You just select Editor Font Zoom In and click the + on the left hand side, type the keybinding you want (eg. Control+Shift+=) and then press enter.

    Note: you might need to open new VS Code windows for these changes to take effect. If the keyboard shortcuts are still zooming the whole interface, you'll need to make sure that you have removed the keybindings from View: Zoom In and View: Zoom Out (see step 3 above)

    0 讨论(0)
  • 2020-12-29 03:20

    You want the FontSize Shortcuts extension.

    Installation:

    1. Ctrl + P
    2. ext install fontsize-shortcuts
    3. Restart Visual Studio Code.

    The shortcuts are:

    • Ctrl + = to increase the font size.
    • Ctrl + - to decrease the font size.
    • Ctrl + 0 to reset the font size.
    0 讨论(0)
提交回复
热议问题