Sublime Text 3 how to change the font size of the file sidebar?

前端 未结 13 538
难免孤独
难免孤独 2020-12-04 05:32

Though I have tried to modify \"font.size\" in classes like \"Label_control\" and \"sidebar_control\" in the Package \"Theme-Default\", the font size of the editor does not

相关标签:
13条回答
  • 2020-12-04 05:45

    The answers are omitting the square brackets, in the case one is creating the file from scratch.

    To recap, for the ST3 users who don't have the Default.sublime-theme file (which is actually the default configuration), the simplest procedure is:

    1. Navigate to Sublime Text -> Preferences -> Browse Packages
    2. Open the User directory
    3. Create a file named Default.sublime-theme (if you're using the default theme, otherwise use the theme name, e.g. Material-Theme-Darker.sublime-theme) with the following content (modify font.size as required):

    [
        {
            "class": "sidebar_label",
            "color": [0, 0, 0],
            "font.bold": false,
            "font.size": 12
        },
    ]
    

    For reference, here there is the full file (as found in ST2).

    Ubuntu 18.04

    Location of theme setting on Ubuntu 18.04, installed via sudo apt install sublime-text:

    ~/.config/sublime-text-3/Packages/User/Default.sublime-theme
    

    MacOS

    Location of theme setting on MacOS, installed via DMG:

    ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/User/Default.sublime-theme
    
    0 讨论(0)
  • 2020-12-04 05:51

    Default.sublime-theme file works unless you have installed a theme. If you did, go to your theme's github repo and download the your_theme.sublime-theme file and put it in your 'User' folder. In that file, find "class": "sidebar_label", add "font.size":16 to that section.

    0 讨论(0)
  • 2020-12-04 05:51

    You need to change it at "class": "sidebar_label" Example, in your .sublime-theme file:

    // Sidebar entry
    {
        "class": "sidebar_label",
        "color": [212, 212, 213],
        "shadow_offset": [0, 0],
        "font.size":13
    }
    

    Credit

    0 讨论(0)
  • 2020-12-04 05:51

    Some limited flexibility is available if your using the Afterglow Theme.

    https://github.com/YabataDesign/afterglow-theme

    You can edit your user preferences in the following way.

    Sublime Text -> Preferences -> Settings - User:

    {
        "sidebar_size_14": true
    }
    

    https://github.com/YabataDesign/afterglow-theme#sidebar-size-options

    0 讨论(0)
  • 2020-12-04 05:56

    I use Soda Dark 3 with icons enabled. So by just renaming it erases all the icons enabled with it. So I just leave the Default as it is and created a new file Soda Dark 3.sublime-theme and just have the following in the content

    [
    {
        "class": "label_control",
        "color": [150, 25, 25],
        "shadow_color": [24, 24, 24],
        "shadow_offset": [0, -1],
        "font.size": 16,
        "font.bold": true
    },
    

    ]

    So in Mac is it at /Users/gugovind/Library/Application Support/Sublime Text 3/Packages/User/

    0 讨论(0)
  • 2020-12-04 05:58

    On Ubuntu, for versions of Sublime older than 3.2, what worked for me was changing the dpi scale in Preferences > Settings — User by adding this line:

    "dpi_scale": 1.10 
    

    For Sublime 3.2, you can use the following line instead:

    "ui_scale": 1.10
    

    Adjust the scale value as needed. After this change, you have to restart Sublime Text for it to take effect.

    0 讨论(0)
提交回复
热议问题