atom-alignment
atom-alignment copied to clipboard
How to reverse it?
It would be nice to have a feature to reverse it.
For example:
var data = {
apple: 'apple',
bee : 'bee'
}
ctrl+alt+r reverse it to
var data = {
apple: 'apple',
bee: 'bee'
}
I would use multi cursor on the semicolons. Select the first, then ctrl+d, then left_arrow then hit space so you should have:
var data = {
apple : 'apple',
bee : 'bee'
}
Then shift+left_arrow to select all whitespace and then hit backspace.
Keeping things aligned so I can more easily use multicursor in the manner was most of the reason I used this package.
Great solution if it doesn't require the users to remember the shortcuts and hit the key so many times.
I guess I just find this sort of interaction to be second nature ever since I switched to sublime text some years ago. Atom and vscode adopted and extended this type of functionality