Results 1 to 9 of 9

Thread: [RESOLVED] Can't the IDE put in my {} ?

  1. #1

    Thread Starter
    Fanatic Member JPicasso's Avatar
    Join Date
    Aug 2001
    Location
    Kalamazoo, MI
    Posts
    843

    Resolved [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.
    Last edited by Hack; Jun 1st, 2006 at 01:19 PM. Reason: Added green "resolved" checkmark Last edited by JPicasso : Today at 08:56 AM.
    Merry Christmas

  2. #2
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    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.
    I don't live here any more.

  3. #3
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    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.
    Amin to that
    "I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
    My Blog

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    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. 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.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  5. #5
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Can't the IDE put in my {} ?

    And best, you can share the code snippets with n00bs since they're XML files anyways.

  6. #6

    Thread Starter
    Fanatic Member JPicasso's Avatar
    Join Date
    Aug 2001
    Location
    Kalamazoo, MI
    Posts
    843

    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.
    ?
    Merry Christmas

  7. #7
    Shared Member
    Join Date
    May 2005
    Location
    Kashmir, India
    Posts
    2,277

    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.
    Use [code] source code here[/code] tags when you post source code.

    My Articles

  8. #8

    Thread Starter
    Fanatic Member JPicasso's Avatar
    Join Date
    Aug 2001
    Location
    Kalamazoo, MI
    Posts
    843

    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.
    Last edited by JPicasso; Jun 1st, 2006 at 07:56 AM.
    Merry Christmas

  9. #9
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    Re: [RESOLVED] Can't the IDE put in my {} ?

    You want a good ide, try C# Builder by Borland
    "I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
    My Blog

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width