[RESOLVED] Can't the IDE put in my {} ?
In VB.NET the (VS2005)IDE will put in all my EndFunction and EndIF and End-whatevers and help me out with my indents and whatnot.
In C# IDE, I get nuttin, and worse, sometimes it's worse than nuttin, and I have to go, line by line and re-tab my stuff.
Is there any way to make the C# IDE any smarter, so that it would, for instance, drop in an open { and a close } when I type a function header?
I've tried different Environment options, but no luck.
Re: Can't the IDE put in my {} ?
You are better off without it, trust me.
You should learn to write code all by yourself. If you rely on the IDE too much then you will be useless when the time comes to write code in a plain text editor. For example when you want to write a quick console app and compile it from the command prompt with csc. Learn the language not the IDE. ;)
Re: Can't the IDE put in my {} ?
Quote:
Originally Posted by wossname
You are better off without it, trust me.
You should learn to write code all by yourself. If you rely on the IDE too much then you will be useless when the time comes to write code in a plain text editor. For example when you want to write a quick console app and compile it from the command prompt with csc. Learn the language not the IDE. ;)
:thumb: Amin to that
Re: Can't the IDE put in my {} ?
I'm guessing that you're using 2003 because the 2005 IDE does do a bit more for you. I can see how it must be a pain to have to type your own braces. :rolleyes: The C# 2005 IDE provides code snippets functionality that will do a lot more than just add braces for you. It's not exactly like what VB does but it is better in many ways. You could create your own code snippet to create an entire method declaration if you wanted.
Re: Can't the IDE put in my {} ?
And best, you can share the code snippets with n00bs since they're XML files anyways. :)
Re: Can't the IDE put in my {} ?
Where would this n00b get some info on a snippet that would do what the IDE should do anyway:
make my life easier.
?
Re: Can't the IDE put in my {} ?
Code Snippets are used for code re-usability. Even in Code snippets you will have to indent the code accordingly.
to make life easier learn to format code the moment you are writing it and not after you have finished writing it. And as far as I know the indentation is done automatically in 2003 too when you write the code properly. As far as {} are concerned, these are not even implemented in 2005 too. You still have to write them.
MS is marketting VB right now as a quick and easy to use RAD tool and VB is case-insensitive so thats why you see some extra features in VB.
Re: Can't the IDE put in my {} ?
Well, IMHO, putting the {'s and }'s is the LEAST that an advanced IDE should do for me.
But whatever. I found some snippets for functions and whatnot. Pretty spiffy.
The ones I have are working for me now.
Re: [RESOLVED] Can't the IDE put in my {} ?
You want a good ide, try C# Builder by Borland