Search code examples
intellij-ideawebstormjetbrains-ide

How do I change the letter spacing of my code in JetBrains IDEs?


I know it's just a matter of preferences. But How do you change the letter spacing of your code? WebStorm seems to put little spacings between letters, which is supposed to improve the readability. The thing is, I don't really like the wide letter spacing.


Solution

  • Pretty sure there's no setting for this yet because

    1. the docs currently only mention line height- no letter spacing- at least not at the time of this writing.
    2. there's a feature-request about it (several, actually), still not completed: JBR-5247: Allow to change the letterspacing of a font. You can either:
    • Try to find a font that's similar to what you want but has thinner characters.
    • Wait patiently for the feature-request to get implemented (and please try not to pester the maintainers too much. Better if you can offer to help implement the changes).

    Work on implementing that feature request has started (source), which will include the abilities to customize letter-spacing, and set stylistic-set and font features. See also https://youtrack.jetbrains.com/issue/IDEA-346333/Allow-to-change-the-letter-spacing-of-a-font.