Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

sublime alignment doesn't work

Tags:

sublimetext2

When I use the sublime text 2, I install the sublime alignment, but the ctrl+alt+a doesn't work.See the screenshots below for more details.

Before

After

like image 973
Cruisehu Avatar asked Aug 09 '13 03:08

Cruisehu


People also ask

How do I align in Sublime Text?

Using Sublime Alignment ↩ Select the lines you wish to align. Press Ctrl+Alt+A (Windows & Linux) or Command+Ctrl+A (Mac OS X)

How do you justify text in Sublime Text?

Command Palette: Ctrl+Shift+P → Wrap Paragraph Justified at Ruler. Shortcut: Alt+Shift+Q.


1 Answers

I had the same issue with Alignment plugin.

Follow these steps:

  1. Open the preferences file for Sublime Alignment:

    • Windows: Preferences > Package Settings > Alignment > Settings - User
    • Linux: Preferences > Package Settings > Alignment > Settings - User
    • Mac OS X: Sublime Text 2 > Preferences > Package Settings > Alignment > Settings - User
  2. The file should be empty. Put the following in it:



    {
        // The mid-line characters to align in a multi-line selection, changing
        // this to an empty array will disable mid-line alignment
        "alignment_chars": [
            "=", ":"
        ]
    }

  1. Save & close the preference file. By default, Sublime Alignment works with "=". Now it works with "=" and with ":". You may also add any other symbols.
like image 105
gomaxnn Avatar answered Oct 16 '22 15:10

gomaxnn