Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to change the font size and font of the workbench #519

Open
hsdk123 opened this issue Nov 24, 2015 · 410 comments
Open

Allow to change the font size and font of the workbench #519

hsdk123 opened this issue Nov 24, 2015 · 410 comments
Labels
feature-request Request for new features or functionality workbench-fonts
Milestone

Comments

@hsdk123
Copy link

hsdk123 commented Nov 24, 2015

At the moment, we can only change the font size / font of the editor. If we want to change the font size, we need to use a roundabout method of "zooming in / out". It would be nice if this could be adjusted through the preferences.

@jrieken jrieken added help wanted Issues identified as good community contribution opportunities feature-request Request for new features or functionality labels Nov 24, 2015
@skube
Copy link

skube commented Dec 3, 2015

Further to this, it seems weird that if I want larger fonts outside of the editor I have to zoom in each time I restart.

@egamma
Copy link
Member

egamma commented Dec 3, 2015

pls see #291 for the zooming issue (in general pls do not create combo issues 😄 )

@egamma egamma modified the milestone: Backlog Dec 10, 2015
@bpasero bpasero changed the title Change font size of outside editor Allow to change the font size of the workbench Apr 7, 2016
@bpasero bpasero self-assigned this Apr 7, 2016
@bpasero bpasero removed the help wanted Issues identified as good community contribution opportunities label Apr 7, 2016
@conceptualspace
Copy link

+1

v1.4.0 seemed to make the file explorer fonts larger/bolder, making it harder to traverse a large directory

@bpasero bpasero removed their assignment Aug 17, 2016
@bpasero bpasero changed the title Allow to change the font size of the workbench Allow to change the font size and font of the workbench Feb 10, 2017
@bobrocke
Copy link

bobrocke commented Mar 6, 2017

+1

@nishantgeorge
Copy link

+1

2 similar comments
@dodalovic
Copy link

👍

@cgiacomi
Copy link

cgiacomi commented May 5, 2017

👍

@bobrocke
Copy link

bobrocke commented May 5, 2017

Does the new UI theming interface give access to the font size?

@kentor
Copy link

kentor commented May 17, 2017

In addition, I would like to increase the line spacing in the explorer. File names are way too close to each other and is fatiguing to look at.

@xster
Copy link

xster commented May 18, 2017

Ha, I was gonna suggest exposing line height so I could decrease it and pack more files into each screen.

@timc13
Copy link

timc13 commented Jun 12, 2017

just to add another reason:

  • changing the Explorer to a monospaced font is easier to read when scanning for files

@mzabuawala
Copy link

+1

Please add support for changing font size of EXPLORER window.

@sokhuong-uon
Copy link

After I read this thread, it hits different 🙀

@johnnyshankman
Copy link

2600 upvotes and 7 years of conversation but no movement, i've lost hope on this feature request tbh.

@eduardmavliutov
Copy link

+1

@zero00072
Copy link

zero00072 commented Dec 12, 2023

Workaround on Linux:

Run this script after every updates if you used official package and with superuser permission:

#!/bin/sh

# Edited, thanks to @metaleap.
codes="code code-insiders vscodium"

for code in $codes; do
    style_file="/usr/share/$code/resources/app/out/vs/workbench/workbench.desktop.main.css"

    if [ -f "$style_file" ]; then
        favorite="Iosevka"

        # Change font to monospace.
        sed -i "s/\.linux{[^}]\+/.linux{font-family:\"$favorite\",\"Noto Sans Mono\"/" \
            "$style_file"
        sed -i "s/\.linux:lang(zh-Hans){[^}]\+/.linux:lang(zh-Hans){font-family:\"$favorite\",\"Noto Sans Mono CJK SC\"/" \
            "$style_file"
        sed -i "s/\.linux:lang(zh-Hant){[^}]\+/.linux:lang(zh-Hant){font-family:\"$favorite\",\"Noto Sans Mono CJK TC\"/" \
            "$style_file"
        sed -i "s/\.linux:lang(ja){[^}]\+/.linux:lang(ja){font-family:\"$favorite\",\"Noto Sans Mono CJK JP\"/" \
            "$style_file"
        sed -i "s/\.linux:lang(ko){[^}]\+/.linux:lang(ko){font-family:\"$favorite\",\"Noto Sans Mono CJK KR\"/" \
            "$style_file"

        # Change font-size to what you want.
        sed -i 's/\.monaco-workbench \.part>\.content{[^}]\+/.monaco-workbench .part>.content{font-size:18px/' \
            "$style_file"
    fi
done

exit 0

@AJB99
Copy link

AJB99 commented Dec 13, 2023 via email

@metaleap
Copy link

@zero00072 handy script, thanks! Btw. some of us might have to change this line:

codes="code code-insiders"

to

codes="code code-insiders vscodium"

😎

@wallyfoo
Copy link

wallyfoo commented Jan 4, 2024

Just stumbled onto Zed. It allows the granular flexibility of distinct fonts for UI, code windows, and the terminal. Without errors after updating. Not feature complete by any stretch of the imagination, but enough is there for me to take it for a spin while this remains absent in VSCode. (Though currently Mac only.) I gotta be able to see my IDE, you know?

@AJB99
Copy link

AJB99 commented Jan 5, 2024

@wallyfoo Thank for the tip. Zed looks pretty cool, just downloaded the beta from zed.dev and gave it a spin. They're right about the speed, and it offers some excellent features.

Not sure if it's enough to get me to switch away from sublimetext.com, but I'll keep an eye on it.

@EvansMatthew97
Copy link

https://marketplace.visualstudio.com/items?itemName=drcika.apc-extension

@maadabrandon
Copy link

maadabrandon commented Jan 31, 2024

We're approaching 9 years since this issue was opened! Can we get to 10?

@AJB99
Copy link

AJB99 commented Jan 31, 2024 via email

@MurzNN
Copy link

MurzNN commented Jan 31, 2024

We're approaching 9 years since this issue was opened! Can we get to 10?

10 is not enough already, we should gain at least 23 years to beat the current record: https://arstechnica.com/gadgets/2023/10/22-year-old-firefox-tooltip-bug-fixed-in-a-few-lines-offering-hope-to-us-all/ 😁

And seems MS is already trying to achieve this using the current issue 😂😂😂

@realh
Copy link

realh commented Jan 31, 2024

That's still not as old as Microsoft's own record for the bug of storing local time in the hardware clock. Not sure if that counts as fixed, because I think the option to fix it is still off by default and difficult to find. I think Windows also still claims that UTC and/or GMT switches from +0000 to +0100 and back every year.

@jkanavas
Copy link

jkanavas commented Feb 6, 2024

2600 upvotes and 7 years of conversation but no movement, i've lost hope on this feature request tbh.

You are a TS programmer can't you make a PR for it?

@danwand-qd
Copy link

Anyone working on this feat rn ?

@austincondiff
Copy link

I've been getting notifications on this issue for years now and it has been open for way too long without any attention. 💀 For those Mac users that are interested, come check out CodeEdit 📝 (shameless plug, I know 😅). We still have work to do, but at least we give issues the attention our community deserves! 💪

@Barzi-Ahmed
Copy link

+1

@dnets
Copy link

dnets commented Mar 30, 2024

+1 We need this. Soon this issue will be old enough to drive.

@Iainmon
Copy link

Iainmon commented Apr 8, 2024

Shouldn't this be trivial to implement?

@wallyfoo
Copy link

wallyfoo commented Apr 8, 2024

It's just CSS under the hood for the styling, so yes. If you use an extension like fonted, it works until the next update. It would be nice for this to Just Work™ without an extension, or have the extension-implemented change survive through an update.

@justanotheranonymoususer
Copy link
Contributor

@wallyfoo VSCode Tweaker of Windhawk just works and survives updates, but it's Windows-only.

@DanKaplanSES
Copy link

@wallyfoo VSCode Tweaker of Windhawk just works and survives updates, but it's Windows-only.

How do I learn how to learn how to use this? It doesn't have much documentation on the linked page.

@justanotheranonymoususer
Copy link
Contributor

@DanKaplanSES after you install it, you can use css just like you can to customize styles of a website. The example that is provided is: .windows {font-family: "Comic Sans MS" !important;}. You can use font-size to change the font size.

@cloorc
Copy link

cloorc commented Apr 16, 2024

Workaround on Linux:

Run this script after every updates if you used official package and with superuser permission:

#!/bin/sh

# Edited, thanks to @metaleap.
codes="code code-insiders vscodium"

for code in $codes; do
    style_file="/usr/share/$code/resources/app/out/vs/workbench/workbench.desktop.main.css"

    if [ -f "$style_file" ]; then
        favorite="Iosevka"

        # Change font to monospace.
        sed -i "s/\.linux{[^}]\+/.linux{font-family:\"$favorite\",\"Noto Sans Mono\"/" \
            "$style_file"
        sed -i "s/\.linux:lang(zh-Hans){[^}]\+/.linux:lang(zh-Hans){font-family:\"$favorite\",\"Noto Sans Mono CJK SC\"/" \
            "$style_file"
        sed -i "s/\.linux:lang(zh-Hant){[^}]\+/.linux:lang(zh-Hant){font-family:\"$favorite\",\"Noto Sans Mono CJK TC\"/" \
            "$style_file"
        sed -i "s/\.linux:lang(ja){[^}]\+/.linux:lang(ja){font-family:\"$favorite\",\"Noto Sans Mono CJK JP\"/" \
            "$style_file"
        sed -i "s/\.linux:lang(ko){[^}]\+/.linux:lang(ko){font-family:\"$favorite\",\"Noto Sans Mono CJK KR\"/" \
            "$style_file"

        # Change font-size to what you want.
        sed -i 's/\.monaco-workbench \.part>\.content{[^}]\+/.monaco-workbench .part>.content{font-size:18px/' \
            "$style_file"
    fi
done

exit 0

For windows users, you may want to try https://github.com/horsing/coder (will replace font to JetBrains Mono), a simple golang tool to start Visual Studio Code and replace its font as you want. But I realy think this is a feature should bundled together with vscode itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request for new features or functionality workbench-fonts
Projects
None yet
Development

Successfully merging a pull request may close this issue.