News for hackers. Stuff that matters.
Re:EditorConfig by bsimpson on Monday November 09, 2015 @12:18PM (#10534289)
I've often wondered this. I find columnar alignment of key:value pairs (in CSS, dictionaries, etc) to be much easier to read, but I find that I'm an outlier because most people get upset when they see whitespace changes in a diff. (FWIW, `?w=0` will hide whitespace changes on GitHub).

It would be rad if an editor like Sublime or Atom understood columns and displayed code that way without needing to reindent everything in the file every time you add a longer key.

Re:EditorConfig by 1wd on Monday November 09, 2015 @12:22PM (#10534331)
It's called elastic tabstops. [1] The page links some editors that implement this and some plugins for other editors. Apparently SublimeText's plugin is incorrect though. It does not mention Atom, but it was discussed in [2].

[1] http://nickgravgaard.com/elastic-tabstops/ [2] https://discuss.atom.io/t/elastic-tabstops/16/23

Re:EditorConfig by Macha on Monday November 09, 2015 @02:27PM (#10535191)
I find it more readable up until the difference in key lengths becomes larger (font and text-decoration for example), at which point I have trouble matching the values with the shorter names.
Re:EditorConfig by oneeyedpigeon on Monday November 09, 2015 @07:27PM (#10536836)
Just right-align your property names. I know that sounds ridiculous, but give it a go:

  body {
             font-size:  16px;
         margin-bottom: 100px;
           padding-top:  40px;
                 color: rgb(100, 100, 100);
      background-color: rgb( 90, 255,   3);
  }
Re:EditorConfig by Already__Taken on Tuesday November 10, 2015 @03:34AM (#10538169)
Oh way better yes. I sometimes like to indent dependent properties too:

  body {
    width: 400px;
    margin: 20px;
    position: absolute;
        bottom: 0;
        right: 0;
    background: #ccc;
  }