How to increase code fonts in Firefox developer tools? I know that there is a zoom function but I want to set the font size only for the code.
相关问题
- SQLite Storage in Firefox 3.0 +
- Writing a custom protocol handler portable on Fire
- setInterval doesn't slow down on inactive tab
- JavaFX automatically resize Button's font size
- CSS grid behaviour different in Chrome and Firefox
相关文章
- Firefox remembering radio buttons incorrectly
- How to control print font size
- CSS Firefox box-shadow and outline
- XML Parsing Error in Firefox developer console
- firefox ondrop event.dataTransfer is null after up
- CORS request did not succeed on Firefox but works
- Label size in directlabels geom_dl()
- Firebug console error HTTP 407 Proxy Authenticatio
To be clear, I mean the + key. You don't need to hold the Shift while doing it.
So sure, as stated before, the short answer is cmd++.
But the + sign might not be directly accessible on your keyboard (no numeric key pad, laptop, strange layout).
You then have to press
maj
first to access the + sign, like, for example on the american keyboard layout: maj+=.Unfortunately, even if you are correctly focused on the dev tool pane, cmd+maj+= increases the font of the web view pane, while cmd+- decreases the font on the dev tool pane.
And you end-up with a web tool pane with a font size so small that it is unreadable, and no way to increase it.
Then @Thal's answer comes handy, once focused to the dev tool pane cmd+0 resets the dev tool's font size to the original.
If you want to answer the question like @Timothy_Truckle is asking for, here are a couple of them (still focus on the dev tool pane, of course):
That's for you guys wondering why some find it hard to simply press cmd++ or why some find it hard to focus on the dev tool pane (because they actually focus on the dev tool pane, but the result is as if they were focused on the web view pane).
You can specify a style for the
devtools-monospace
class selector. To do so, edituserChrome.css
in your mozilla profile'schrome
directory, and specify the CSS properties you want. For example:The
userChrome.css
needs to be in thechrome
folder of your Firefox profile. If the folder don't exist, create it. YouruserChrome.css
will then override the CSS from Firefox dev tools after you restart the browser.To find your profile in Windows OS type: Strg + R and then enter:
As John said, the way to increase the font-size in the devtools is to use ctrl/cmd+, just like you would on a web page. In fact the devtools is a webpage. You just need to make sure that the devtools frame is focused first.
I'm afraid there's no way to only increase the font-size for the code right now.
Open Firefox and type
about:support
. In Application Basics section chose Profile Directory - Open Directory. It will fire your file manager. If there is nochrome
folder than create it. After that go to thischrome
folder and create anuserChrome.css
file, open it in a text editor and add :.devtools-monospace {font-size: 12px!important;}
Save. Be sure to restart Firefox.UPDATE: One thing bothered me - while typing in the devtools console the text actually a bit smaller than on output (after pressing Enter). In order to make it the same we need to change font-size for its corresponding css class too. I don't know its class name yet so I just set
* { font-size: 12px !important; }
globally and it works.You need to modify
userChrome.css
under~/.mozilla/firefox/[profile-name]/chrome
with this:The result looks like this:
This only changes the debugger and style editor. There's a different selector for the html inspector. Not sure what that is yet.