3 ms·
The alignment in the comment above doesn't work with tabs: your initial line is going to be tab-indented, which means if you want those next lines to align with
by zerocrates 5y ago
The alignment in the comment above doesn't work with tabs: your initial line is going to be tab-indented, which means if you want those next lines to align with it you don't have any options for it to work.
Now, I tend to find it's better to just avoid that kind of alignment in your code style completely (just push the first arg to a new line so you're not space-ing everything out a mile to match the function call open paren) but if that's your style then you can't really do it with actually variable tab widths.
- rossy 5y ago"Alignment done with spaces" would look like this for that code. module whatever { ->fn long_function_name_whatever(arg1: type1, ->...............................arg2: type2, ->...............................arg3: type3); } It works just fine - tabs for indentation and spaces for alignment.
- zerocrates 5y agoOh duh... I don't know why I didn't think of that.