atom-alignment icon indicating copy to clipboard operation
atom-alignment copied to clipboard

How to reverse it?

Open baybird opened this issue 6 years ago • 3 comments

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'
}

baybird avatar Nov 09 '18 18:11 baybird

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.

pcnate avatar Nov 09 '18 22:11 pcnate

Great solution if it doesn't require the users to remember the shortcuts and hit the key so many times.

baybird avatar Nov 09 '18 22:11 baybird

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

pcnate avatar Nov 10 '18 16:11 pcnate