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

Trim whitespace character at the beginning of the line #6

Open
toburger opened this issue Dec 6, 2012 · 4 comments
Open

Trim whitespace character at the beginning of the line #6

toburger opened this issue Dec 6, 2012 · 4 comments

Comments

@toburger
Copy link

toburger commented Dec 6, 2012

It would be nice if the whitespace characters at the beginning of the lines would be trimmed, so that the code is indentet nicely.

@billmoling
Copy link
Collaborator

Do you mean trim every line of the code? all the white space at the beginning of the whole gist? For the first question, it will be hard. it may mess up the code outline for whole code part. For the 2nd question. it is easy to fix.

@toburger
Copy link
Author

I think the goal should be to trim every single line (preserving the indentations rules selected in visual studio).

   public class Foo
   {
        // bar
   }

becomes

public class Foo
{
    // bar
}

@cromwellryan
Copy link
Owner

Hmm - while I can see that being a nice thing to do, it makes me nervous. Thar be dragons.

@billmoling
Copy link
Collaborator

@cromwellryan I think there is a possible way to implement this which to find the smallest space number in all lines and remove them.

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

3 participants