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

Line up variables #123

Open
ConnorAtherton opened this issue Nov 21, 2013 · 2 comments
Open

Line up variables #123

ConnorAtherton opened this issue Nov 21, 2013 · 2 comments

Comments

@ConnorAtherton
Copy link

Just a thought, is it better to soft indent variable names or is it acceptable to list them all with the same indentation.

// soft indent
var three,
  example,
  vars;

// line up with first var
var three,
    example,
    vars;

@vgrigory
Copy link

I'm for soft indent :)

@curiouslychase
Copy link

I usually line them up, but all of the examples in idiomatic use soft indent, so it may lend itself to what the answer should be. I'm interested to hear the answer, but I imagine soft indent is going to win out.

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