Copies of formatter suggestions made in newsgroup; targeted to descent 0.5 release
version (A)
{
// ...
}
version (NothingHere?) {}
else
{
// ...
}
Next, a UI suggestion: add a vertical scroll bar and a horizontal scroll bar to
"Brace positions" and "Set all to..." (in "Line wrapping style"), respectively.
Finally, some feature suggestions:
- insert new line after the closing parenthesis in a function literal
- one-line syntax for "scope" statements
- insert space before opening bracket in array declarations
As a minor feature request, I'd like to see an option to format classes like this:
class Foo
{
int x;
private:
int y;
public:
int z;
}
This indentation style is used quite often in Phobos, and I use it as well.