|
I hate the automatic formatting... it always screws up the formatting I like, some features you can't switch off...
V.
I found a living worth working for, but haven't found work worth living for.
|
|
|
|
|
Actually the IDE's I use give you full control over how its formatted. Also if you notice something still happening that you don't like in your configuration, I am sure you can goto the .xml or .conf or.cfg file that it uses and remove it manually.
Plus it helps when you are on a large team and multiple people have touched a single source file, this way you can have it "your way" with a click, rather than an hour of bashing the dev beside you :P
|
|
|
|
|
Signal-9 wrote: this way you can have it "your way" with a click, rather than an hour of bashing the dev beside you
Now where's the fun in that?
|
|
|
|
|
Nitron wrote: Signal-9 wrote:
this way you can have it "your way" with a click, rather than an hour of bashing the dev beside you
Now where's the fun in that?
hmmm you do have a point
|
|
|
|
|
Signal-9 wrote: Actually the IDE's I use give you full control over how its formatted.
And what IDE's are those? I've been seriously looking for something like this, but haven't come across it yet.
Many thanks!
- Kevin
|
|
|
|
|
Currently using ReSharper 2.5 and it allows you to change all the options for when formatting the code, from where to place spaces to how many blank lines between members and methods. It's absolutly perfect
|
|
|
|
|
True. While I love Visual Studio 2005 way of formatting, in some cases, it sounds too much intrusive too.
|
|
|
|
|
I used to hate auto-formatting tools until I saw VS 2003 IDE. But, this is really good for formatting. Earlier, I used to spend hours to make the code fully aligned. But, now I can just remove the last closing brace (})(usually associated with a namespace) and re-enter it - the entire code in the class is fully aligned !!!. This really saves me a lot of time.
Also, I got some VS macros for regionizing code as well as for removing extra blank lines. All these makes formatting very easy.
|
|
|
|
|
Signal-9 wrote: Unfortunately languages like C# and Java tend to deliver much longer characters per line than lets say C++.
Yep, Java and C# are just way too wordy, but that is true even for C++ as it is now (some nice changes are scheduled for the next version of the Standard). Languages like ML and Haskell have very expressive and yet readable syntax. Of the .NET languages, Boo probably has the nicest syntax I have seen so far.
|
|
|
|
|
The fact with automatic reformatting is that might mess file merging. I'm speaking about team development, where merging changes is often necessary.
The best way is to define formatting rules and stick to them in the whole team.
|
|
|
|
|
VS never got HTML, CSS or JavaScript formatting right. Pants I tell you.
regards,
Paul Watson
Ireland & South Africa
Shog9 wrote: I don't see it happening, at least not until it becomes pointless.
|
|
|
|
|
when code lines exceed 10 code formatting is essential and when it exceed some little more it's like breathing do it or die
unless u are not going to have a look on it again
I Wish the Life Had CTRL-Z
|
|
|
|
|
I totally agree, but will also add that correct spelling and grammar in your comments and code is also very necessary.
cheers,
Chris Maunder
CodeProject.com : C++ MVP
|
|
|
|
|
Chris Maunder wrote: correct spelling and grammar in your comments and code is also very necessary.
I totally agree.
|
|
|
|
|
well, being on it, i have to admit that i am obsessed about my code formatting...
|
|
|
|
|
I support that however, the spelling and grammar checks might not befit to a significant level in case of abbreviated variables etc.
Spellchecker would scream for every sentence.
|
|
|
|
|
Agreed but short and to the point
Theres light at the end of the tunnel, hope it ain't no train.
|
|
|
|
|