sublime_alignment
sublime_alignment copied to clipboard
Alignment of => in PHP arrays not working
Hi there, I tried to create PHP.sublime-settings in the user directory, and fiddled around with alignment_chars
and alignment_prefix_chars
, but I keep finding that the Alignment plugin will separate the =
and >
when aligning php arrays of key => value.
Is this something I'm doing wrong with the settings, or is it something hard-coded?
Works for me, here's my config:
"alignment_chars": ["=", ",", ":"],
"alignment_space_chars": ["="],
"alignment_prefix_chars": [
"+", "-", "&", "|", "<", ">", "!", "~", "%", "/", "*", "."
]
I can confirm. Alignment is not working at all in PHP for me. (Windows 7 64 bit)
Try the Abacus plugin for now, it seems to work for me (ST3). You'll have to add "=>" to the settings, though.
Not working for me either. It's a shame because Alignment works great on everything else I throw at it. I'm trying Valign by dizzywhip for now. It seems to be working well.
Just wanted to mention... I've switched to AlignTab, which I find works REALLY well for everything I throw at it. Not trying to troll or take away from @wbond's great work, but I find AlignTab to be much better for my workflow and use cases (Objective-C's goofy colon centered alignment). HTH!
Thanks for this @vanrijn . That plugin provides examples and better documentation, so it's clearer that it does what I want.
I go to this page because the shortcut command Ctrl + Alt + A sometimes it works, sometimes it doesn't, just like this last 2 days. I go to @vanrijn suggestion to using AltTab, and it's working perfectly, but I still miss my shortcuts. Right-clicking and choose a 'divider' (?) is too much to my liking.