Font size
Programming is very particular - every little character typically has meaning, and the absence of a character or misplaced character can create problems. Knowing this, it’s useful to be able to quickly increase (and decrease) the font size in programs so you can carefully examine lines of code, paths, error messages, etc. The following notes explain how to do this...
Adjusting font size in command line
In command line, you can increase/decrease your font size with the following keyboard shortcuts:
- Mac Terminal:
command
+
to increase,command
-
to decrease - Windows Git Bash:
Ctrl
+
to increase,Ctrl
-
to decrease
Adjust font size in VSCode
We’re going to enable an option in VSCode that lets you increase/decrease your font size using a scroll action (either via your touch pad or a mouse wheel).
To do this, click the gear icon on the bottom left of the VSCode window then choose Settings.
Within your settings, search for zoom
. From the options that appear, find and enable the setting Editor: Mouse Wheel Zoom.
Now, when you hold down command (on Mac) or Ctrl (on Windows) and perform a scroll action, you should see the font size of your currently open code file change.
Scrolling up will decrease the font size, scrolling down will increase the font size.