Visual Studio Code zoom settings

Operating software under Windows is very similar, so just start using vs code when habitually use Ctrl + mouse wheel to zoom, however, does not work on vs code.

There are two types of zoom in vs code:

First, the overall scale: including the menu bar and text editing area

Overall scaling using Ctrl + = and Ctrl + - to finish

Second, the text editing area Zoom

Sometimes we just want to zoom in on text, but also like to modify the configuration files vs code with Ctrl + mouse wheel to zoom in on text so long need to:

1, the F1 or Ctrl + Shift + P command panel open

2, enter the command panel settings, select Preferences: Open Default Settings (JSON) option, then opens a named defaultSettings.json file.

Use Ctrl + F shortcut to find zoom, look down you can see the following code "editor.mouseWheelZoom": false, to see such a detailed Chinese annotation, touched it! ! ^ _ ^

3, the "editor.mouseWheelZoom": false is false to true

If the figure below: You can not edit a read-only editor

This is because defaultSettings.json file is the default file vs code, usually not to modify, but will need to modify the place into personal settings

3.1, is also entered in the command panel settings, now select the Preferences: Open Settings (JSON) option, then opens another named settings.json file.

 The defaultSettings.json copy those two lines of code file to settings.json file, and change false to true

Finally, you can save

Guess you like

Origin www.cnblogs.com/jank/p/12059159.html