Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add strip leading whitespace/indent option #8

Open
MadLittleMods opened this issue Apr 20, 2015 · 1 comment
Open

Add strip leading whitespace/indent option #8

MadLittleMods opened this issue Apr 20, 2015 · 1 comment

Comments

@MadLittleMods
Copy link

It would be nice if you were slicing a block of code that was all indented in, to have an option that strips the common amount of whitespace from each line in order to perfectly left align it.

Maybe use the npm strip-indent package or this Python recipe for block formatting as some inspiration.

        foo: function() {
            var a = 1;
            return a;
        }

to

foo: function() {
    var a = 1;
    return a;
}
@MadLittleMods MadLittleMods changed the title Add strip leading indent option Add strip leading whitespace/indent option Apr 20, 2015
@nighto
Copy link

nighto commented Apr 20, 2015

+1, that would be very nice. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants