Auto reformating c# code

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • muscha

    #1

    Auto reformating c# code

    Hello,

    I'm using Visual Studio .Net Enterprise Architect 2003. Is there a way/add
    in that is freely available to atutomatically reformat source code (C#)?

    Thanks heaps,

    /m


  • Rakesh

    #2
    Re: Auto reformating c# code

    Hi,
    have you tried Edit->Advanced->FormatSelectio n , Ctrl K, Ctrl F

    HTH
    Rak

    "muscha" <muscha@no.spam .net> wrote in message
    news:%231VKkpYf DHA.3216@tk2msf tngp13.phx.gbl. ..[color=blue]
    > Hello,
    >
    > I'm using Visual Studio .Net Enterprise Architect 2003. Is there a way/add
    > in that is freely available to atutomatically reformat source code (C#)?
    >
    > Thanks heaps,
    >
    > /m
    >
    >[/color]


    Comment

    • muscha

      #3
      Re: Auto reformating c# code

      Yes, but I can't control the formatting style. I'm forced to use VS .Net
      formatting style.

      thanks,

      /m

      "Rakesh" <rakeshn@asiane tindia.com> wrote in message
      news:%23DSYdEaf DHA.3248@tk2msf tngp13.phx.gbl. ..[color=blue]
      > Hi,
      > have you tried Edit->Advanced->FormatSelectio n , Ctrl K, Ctrl F
      >
      > HTH
      > Rak
      >
      > "muscha" <muscha@no.spam .net> wrote in message
      > news:%231VKkpYf DHA.3216@tk2msf tngp13.phx.gbl. ..[color=green]
      > > Hello,
      > >
      > > I'm using Visual Studio .Net Enterprise Architect 2003. Is there a[/color][/color]
      way/add[color=blue][color=green]
      > > in that is freely available to atutomatically reformat source code (C#)?
      > >
      > > Thanks heaps,
      > >
      > > /m
      > >
      > >[/color]
      >
      >[/color]


      Comment

      • Tony

        #4
        Re: Auto reformating c# code

        I am looking for a solution to this as well. Although most of the
        formatting style in VS.NET seems fine, but there are cases that I want to
        use a custom format, such as no indents for static members, etc.


        "muscha" <muscha@no.spam .net> wrote in message
        news:uyNLVCbfDH A.3228@tk2msftn gp13.phx.gbl...[color=blue]
        > Yes, but I can't control the formatting style. I'm forced to use VS .Net
        > formatting style.
        >
        > thanks,
        >
        > /m
        >
        > "Rakesh" <rakeshn@asiane tindia.com> wrote in message
        > news:%23DSYdEaf DHA.3248@tk2msf tngp13.phx.gbl. ..[color=green]
        > > Hi,
        > > have you tried Edit->Advanced->FormatSelectio n , Ctrl K, Ctrl F
        > >
        > > HTH
        > > Rak
        > >
        > > "muscha" <muscha@no.spam .net> wrote in message
        > > news:%231VKkpYf DHA.3216@tk2msf tngp13.phx.gbl. ..[color=darkred]
        > > > Hello,
        > > >
        > > > I'm using Visual Studio .Net Enterprise Architect 2003. Is there a[/color][/color]
        > way/add[color=green][color=darkred]
        > > > in that is freely available to atutomatically reformat source code[/color][/color][/color]
        (C#)?[color=blue][color=green][color=darkred]
        > > >
        > > > Thanks heaps,
        > > >
        > > > /m
        > > >
        > > >[/color]
        > >
        > >[/color]
        >
        >[/color]


        Comment

        • Greg Ewing [MVP]

          #5
          Re: Auto reformating c# code

          You could always buy a code formatter. Here's one :



          --
          Greg Ewing [MVP]
          IT support built exclusively for nonprofits. 25 years of managed IT, help desk, and cybersecurity - so your team can focus on your mission.


          "Tony" <engineliu@hotm ail.com> wrote in message
          news:u7cenRbfDH A.3324@TK2MSFTN GP11.phx.gbl...[color=blue]
          > I am looking for a solution to this as well. Although most of the
          > formatting style in VS.NET seems fine, but there are cases that I want to
          > use a custom format, such as no indents for static members, etc.
          >
          >
          > "muscha" <muscha@no.spam .net> wrote in message
          > news:uyNLVCbfDH A.3228@tk2msftn gp13.phx.gbl...[color=green]
          > > Yes, but I can't control the formatting style. I'm forced to use VS .Net
          > > formatting style.
          > >
          > > thanks,
          > >
          > > /m
          > >
          > > "Rakesh" <rakeshn@asiane tindia.com> wrote in message
          > > news:%23DSYdEaf DHA.3248@tk2msf tngp13.phx.gbl. ..[color=darkred]
          > > > Hi,
          > > > have you tried Edit->Advanced->FormatSelectio n , Ctrl K, Ctrl F
          > > >
          > > > HTH
          > > > Rak
          > > >
          > > > "muscha" <muscha@no.spam .net> wrote in message
          > > > news:%231VKkpYf DHA.3216@tk2msf tngp13.phx.gbl. ..
          > > > > Hello,
          > > > >
          > > > > I'm using Visual Studio .Net Enterprise Architect 2003. Is there a[/color]
          > > way/add[color=darkred]
          > > > > in that is freely available to atutomatically reformat source code[/color][/color]
          > (C#)?[color=green][color=darkred]
          > > > >
          > > > > Thanks heaps,
          > > > >
          > > > > /m
          > > > >
          > > > >
          > > >
          > > >[/color]
          > >
          > >[/color]
          >
          >[/color]


          Comment

          Working...