How can I increase the font size in the Chrome console?
It seems Paul Irish did it:
Update:
Here are some tips on how to customize Chrome developer tools.
If you just need a quick, temporary size bump you can press Ctrl + / - to zoom and Ctrl 0 to reset.
Here's a pretty recent blog post on the subject.
Basically, override Default/User StyleSheets/Custom.css
in your user directory with something like:
/* Keep .platform-mac to make the rule more specific than the general one above. */
body.platform-mac.platform-mac-snowleopard .monospace,
body.platform-mac.platform-mac-snowleopard .source-code {
font-size: 11px !important;
font-family: Menlo, monospace;
}
body.platform-windows .monospace, body.platform-windows .source-code {
font-size: 12px !important;
font-family: Consolas, Lucida Console, monospace;
}
body.platform-linux .monospace, body.platform-linux .source-code {
font-size: 11px !important;
font-family: dejavu sans mono, monospace;
}
User StyleSheets/Custom.css
folder/file in my C:\Users\c22\AppData\Local\Google\Chrome\User Data\Default
directory on my Windows 8 laptop. And I've checked all the folders and files in the Default
directory. This question is over a year ago, has anyone found where the custom.css
file is located in Chrome 37.0.x? Thanks
I hope it will help you
If you are on a Mac, are using a japanese keyboard, and want to zoom the console temporarily, the short-cuts are:
Zoom In: ⌘ ^
Zoom Out: ⌘ -
Reset Zoom: ⌘ 0
Other Applications are using + for zooming in, but because on japanese keyboards the plus-sign is on the second level, it is only accessible with shift. So: ⌘ ⇧ +
That where it gets weird, because to Chrome ⌘ ⇧ + apparently means "Zoom Content". If you are in the Javascript console, and do ⌘ ⇧ +, the window's content area in zoomed in. But doing a Zoom-out ⌘ - moves the focus back to the console and zooms it out. Result: The content is getting larger, the console smaller. Aaarggghhh.
Windows 7, Google Chrome 19.0.1084.46 m
Method with modifying "User StyleSheets/Custom.css" not worked on me, but Ctrl+"+" worked :-)
THIS IS OBSOLETE - See @TinyJaguar's answer. You can now just use Command-+ if you've selected something in the developer console.
If you want to increase the font size in the Javascript console, you need some specific font sizes. It's a bit trickier than just setting the font size for source:
.source-code {
font-size: 16px !important;
font-family: monospace;
}
.console-prompt {
font-size: 16px !important;
font-family: monospace;
}
.console-message-text {
font-size: 16px !important;
font-family: monospace;
}
.monospace {
font-size: 16px !important;
font-family: monospace;
}
#elements-content {
font-size: 16px !important;
}
C:\Users\c22\AppData\Local\Google\Chrome\User Data\Default\User Stylesheet\Custom.css
file in windows 8.
On MacOs, if your key 0 or + or - are on the second level, typing ⌘ ⇧ + won't work. In such a case, you need to use capslock ⇪, and then you can type ⌘ + and ⌘ 0
Of Note: From within DevTools, you must have the Elements Tab open in order to adjust font size by using "Ctrl +/-." For some reason it cannot be done in other tabs.
In the newer version of Chrome, you can easily change the font size of font in Developer Tools.
I've created a small plugin which provides a collection editor settings for Chrome Developer Tools, including the ability to incrementally control font size.
This will add an 'Author Settings' panel to Chrome Developer Tools, where you can incrementally control font size, from 10px - 22px
If you're like me, CMD++ is not working for you because it switches you to the first tab instead (even though you have Enable ⌘ + 1-9 shortcut to switch panels
turned off).
Well, in that case, open Dev Tools, Undock into separate window
and then go for View --> Zoom in
in Chrome Menu Bar. Voilà!
Once you dock Dev Tools back into the browser window, View --> Zoom in
will actually increase font size in a browser window, but as long as Dev Tools are undocked, it targets the undocked Dev Tools.
Press
For Mac, replace CTRL with CMD key (a.k.a., ⌘).
I know this is way old, but the simple solution I found is to increase the min. font size
in the settings and that will take care of the font size in chrome debugger.
Another quick way to change the font size in Chrome Dev tools permanently: Settings
--> Show Advanced Settings
--> Web Content
: change the Page Zoom percentage.
Here is the result: https://i.stack.imgur.com/EHM0P.png
If you're using a newer MacBook pro 2017, you can simply use command => shift => + or - all pressed at once.
If you are using a laptop, you can do that with only your laptop trackpad.
Tap on your trackpad with one finger(don't release yet) then scroll up or down with another finger to increase or decrease font size.
Just make sure the dev tools panel is on focus. Tested and working on my HP Pavilion, Windows 8.
You can press Ctrl + Shift + + / - to zoom and Ctrl + 0 to reset Console font size.
You can see all available shortcuts Chrome's Console in the settings.
F12 (open dev tools) -> F1 -> Shortcuts