Back


How to mark 80-characters column limit in Sublime Text 3?


Edit

To format typed text into 80-character lines, select the entire text or paragraph and apply the command:

    Edit > Wrap paragraph at 80 characters

View

AUTOMATIC text formatting DOES NOT WORK!!! DISPLAY ONLY!

If you want to display the vertical ruler, select:

    View → Ruler → 80

If you like to actually wrap your text at 80 columns, select:

    View → Word Wrap Column → 80

Settings

To make your selections permanent (the default for all opened files or views), open:

    Preferences → Settings

and use any of the following rules in the right-side pane:

    {
        // set vertical rulers in specified columns.
        // Use "rulers": [80] for just one ruler
        // default value is []
        "rulers": [80, 100, 120],    

        // turn on word wrap for source and text
        // default value is "auto", which means off for source and on for text
        "word_wrap": true,    

        // set word wrapping at this column
        // default value is 0, meaning wrapping occurs at window width
        "wrap_width": 80
    }

These settings can also be used in a .sublime-project file to set defaults on a per-project basis, or in a syntax-specific .sublime-settings file if you only want them to apply to files written in a certain language (Python.sublime-settings or JavaScript.sublime-settings, for example). Access these settings files by opening a file with the desired syntax, then selecting:

    Preferences → Settings—Syntax Specific

Fonts

You need to use a monospace font in order to display rulers so you'll also need to change:

    "font_face": "Monospace",

or any other monospaced font.


List of fonts:


#sublime_text


^ Back to top



Back Modified , email