|
CP has gone down the drain.
Let me rephrase.
A question for those of you that actually know what a code beautifier is (and does) and can't be bothered to waste time digging themselves into a hole pretending to be "smart", what do you guys use for C#? I would like to do better than AStyle/Uncrustify.
Thank you in advance.
|
|
|
|
|
Franc Morales wrote: A question for those of you that actually know what a code beautifier is (and does) and can't be bothered to waste time digging themselves into a hole pretending to be "smart", what do you guys use for C#? I would like to do better than AStyle/Uncrustify.
I have no idea as I don't code in C# or much at all really now. But Paulo Kunzel a couple of replies up pointed you to http://www.narrange.net/[^], he just messed up his link.
Michael Martin
Australia
"I controlled my laughter and simple said "No,I am very busy,so I can't write any code for you". The moment they heard this all the smiling face turned into a sad looking face and one of them farted. So I had to leave the place as soon as possible."
- Mr.Prakash One Fine Saturday. 24/04/2004
|
|
|
|
|
Thank you both.
EDIT: Too simple a tool.
|
|
|
|
|
Check everything inside Tools->Options->Text Editor->C#->Formatting->General (at least for VS2010, VS2012 could be a little different, I have not tried), Open the file, click Ctrl-A, Ctrl-K and Ctrl F, then it formats the code in a nice way. However you have to open the code files to do it. I am not sure is this what you actually wanted though ...
|
|
|
|
|
Yes, the built-in beautifier has improved somewhat but I'm afraid it is still not flexible enough.
Thank you, though.
|
|
|
|
|
I had to stop using such lovely tools because ...
everyone here has their own preferred style
and so Source Code Comparisons noted almost every line as a change.
If you find a tool that prettifies C# on user preferences, but manages to avoid the issue with source control code comparisons - let me know!
MVVM # - I did it My Way
___________________________________________
Man, you're a god. - walterhevedeich 26/05/2011
.\\axxx
(That's an 'M')
|
|
|
|
|
A workaround it to keep two user preferences, one shared by everyone and one for yourself. Use the first one before a commit or a diff.
Beautifiers save so many keystrokes that it is plain evil to have to give them up...
|
|
|
|
|
Yeah - in another work environment I'd insist on that - here it's all too hard!
We get some devs just manually going through code changing the bracketing to their preference.
I suggested automating the build process on check in and was met with such negativity I've pretty much given up suggesting any improvements in process.
Sorry - feeling particularly cynical today!
MVVM # - I did it My Way
___________________________________________
Man, you're a god. - walterhevedeich 26/05/2011
.\\axxx
(That's an 'M')
|
|
|
|
|
Well, it depends really.
Tools like never really work in every case. It really depends on case to case.
Sometimes it's nice to have it separated, makes it more readable.
Sometimes you have some inline stuff, thaat if you separated in the same way would just confuse you.
|
|
|
|
|
We are pushing out a new release.
Since we have launched the product, there was one design decision, which was affecting the performance. But it required quite a bit changes and a lot of testing, so I was keep delaying it (for 6 months). Today I decided to take a look at the issue and plan if we could work on it, while we prepare for the next release, so that we could save time and do the testing along with the new release.
I have estimated 6 Days of work on the issue when I logged it. But today I fixed it in 7 hours, in a much better way than previously documented. (Now we can even scale-down the azure instance and save some money.)
|
|
|
|
|
Congratulations, Dave !
Google CEO, Erich Schmidt: "I keep asking for a product called Serendipity. This product would have access to everything ever written or recorded, know everything the user ever worked on and saved to his or her personal hard drive, and know a whole lot about the user's tastes, friends and predilections." 2004, USA Today interview
|
|
|
|
|
Good job!
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
|
If you're not in competition with us: Hey, great job!
If you are: I hope it crashes and burns, you cocky sod!
Well, 'slife, innit?
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
In both the cases, Thank you!
|
|
|
|
|
Nice
|
|
|
|
|
A new idea for you (I think)
If it's popular, I may make it OTW or OTD depending on how I feel.
Here's the plan: I give you a summary of the film, you tell me which movie it is...
An easy one to start:
"Arriving in a new country, a young girl kills the first person she meets, then teams up with three friends to kill again."
-----
"The Wizard of Oz"
Maybe I won't do this again...
The only instant messaging I do involves my middle finger.
English doesn't borrow from other languages.
English follows other languages down dark alleys, knocks them over and goes through their pockets for loose grammar.
modified 13-Oct-13 12:21pm.
|
|
|
|
|
Paris Does Dallas
speramus in juniperus
|
|
|
|
|
Are you accusing Ms Hilton of being strangulation cornflakes?
The only instant messaging I do involves my middle finger.
English doesn't borrow from other languages.
English follows other languages down dark alleys, knocks them over and goes through their pockets for loose grammar.
|
|
|
|
|
Has it got something to do with Vampires?
|
|
|
|
|
Nope.
Nor Helga.
The only instant messaging I do involves my middle finger.
English doesn't borrow from other languages.
English follows other languages down dark alleys, knocks them over and goes through their pockets for loose grammar.
|
|
|
|
|
What movie was it, dont think anyones going to get this one
|
|
|
|
|
Done! And I thought it was easy - it was even a quote from a movie review!
Google[^]
The only instant messaging I do involves my middle finger.
English doesn't borrow from other languages.
English follows other languages down dark alleys, knocks them over and goes through their pockets for loose grammar.
|
|
|
|
|
Dora the Exterminator
“I believe that there is an equality to all humanity. We all suck.” Bill Hicks
|
|
|
|
|
Sounds like she wipes out insects - and they show that to kids?
Nope.
The only instant messaging I do involves my middle finger.
English doesn't borrow from other languages.
English follows other languages down dark alleys, knocks them over and goes through their pockets for loose grammar.
|
|
|
|