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
formatter issue: insert curly braces for orphan #16847
Comments
cc @pq. |
The -t command line option should do this, but the formatter needs a pref page in the Editor to control its options. Set owner to @pq. |
This comment was originally written by @tatumizer with or without flags, doesn't it look like a good idea to generate |
Removed this from the 1.6 milestone. |
Removed Oldschool-Milestone-1.6 label. |
Added AssumedStale label. |
This comment was originally written by @tatumizer Bob: here's a brain-teaser for you. |
This issue has been moved to dart-lang/dart_style#316. |
This issue was originally filed by @tatumizer
BEFORE:
int zero;
if (0==0)
zero=0;
else if (0==1)
zero=1;
else if (0==2)
zero=2;
AFTER:
int zero;
if (0 == 0) zero = 0; else if (0 == 1) zero = 1; else if (0 == 2) zero = 2;
It is much easier to type without curly braces, and then hit some key and have them inserted, properly indented etc.
The way how formatter behaves right now makes things worse, not better IMO.
Otherwise, it's an excellent tool indeed
The text was updated successfully, but these errors were encountered: