Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. C# beautifiers for VS2012

C# beautifiers for VS2012

Scheduled Pinned Locked Moved The Lounge
csharpquestion
31 Posts 10 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R R Giskard Reventlov

    Franc Morales wrote:

    What do you guys use?

    My brain.

    "If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair. Those who seek perfection will only find imperfection nils illegitimus carborundum me, me, me me, in pictures

    F Offline
    F Offline
    Franc Morales
    wrote on last edited by
    #3

    Pity you didn't use it before replying.

    R 1 Reply Last reply
    0
    • F Franc Morales

      Pity you didn't use it before replying.

      R Offline
      R Offline
      R Giskard Reventlov
      wrote on last edited by
      #4

      Well played, sir, well played. :thumbsup: BTW: to be serious: there is no finer tool than your own brain and eyes to "beautify" and clean your code.

      "If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair. Those who seek perfection will only find imperfection nils illegitimus carborundum me, me, me me, in pictures

      F 1 Reply Last reply
      0
      • R R Giskard Reventlov

        Well played, sir, well played. :thumbsup: BTW: to be serious: there is no finer tool than your own brain and eyes to "beautify" and clean your code.

        "If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair. Those who seek perfection will only find imperfection nils illegitimus carborundum me, me, me me, in pictures

        F Offline
        F Offline
        Franc Morales
        wrote on last edited by
        #5

        You seem to be missing the point. Are you a programmer? How much time do you spend "beautifying with your eyes" tens of thousands of lines of legacy code?

        R 3 2 Replies Last reply
        0
        • F Franc Morales

          You seem to be missing the point. Are you a programmer? How much time do you spend "beautifying with your eyes" tens of thousands of lines of legacy code?

          R Offline
          R Offline
          R Giskard Reventlov
          wrote on last edited by
          #6

          Franc Morales wrote:

          How much time do you spend "beautifying with your eyes" tens of thousands of lines of legacy code?

          None: you never mentioned legacy code.

          Franc Morales wrote:

          You seem to be missing the point.

          See above: you have not clearly stated your point or have mis-stated it.

          Franc Morales wrote:

          Are you a programmer?

          Check my profile before asking silly questions. I retract my well played - you didn't play well at all.

          "If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair. Those who seek perfection will only find imperfection nils illegitimus carborundum me, me, me me, in pictures

          B F P 3 Replies Last reply
          0
          • R R Giskard Reventlov

            Franc Morales wrote:

            How much time do you spend "beautifying with your eyes" tens of thousands of lines of legacy code?

            None: you never mentioned legacy code.

            Franc Morales wrote:

            You seem to be missing the point.

            See above: you have not clearly stated your point or have mis-stated it.

            Franc Morales wrote:

            Are you a programmer?

            Check my profile before asking silly questions. I retract my well played - you didn't play well at all.

            "If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair. Those who seek perfection will only find imperfection nils illegitimus carborundum me, me, me me, in pictures

            B Offline
            B Offline
            bryce
            wrote on last edited by
            #7

            oh no they're going to fight *sigh* Bryce

            MCAD ---

            R 1 Reply Last reply
            0
            • R R Giskard Reventlov

              Franc Morales wrote:

              How much time do you spend "beautifying with your eyes" tens of thousands of lines of legacy code?

              None: you never mentioned legacy code.

              Franc Morales wrote:

              You seem to be missing the point.

              See above: you have not clearly stated your point or have mis-stated it.

              Franc Morales wrote:

              Are you a programmer?

              Check my profile before asking silly questions. I retract my well played - you didn't play well at all.

              "If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair. Those who seek perfection will only find imperfection nils illegitimus carborundum me, me, me me, in pictures

              F Offline
              F Offline
              Franc Morales
              wrote on last edited by
              #8

              My god.

              R 1 Reply Last reply
              0
              • R R Giskard Reventlov

                Franc Morales wrote:

                How much time do you spend "beautifying with your eyes" tens of thousands of lines of legacy code?

                None: you never mentioned legacy code.

                Franc Morales wrote:

                You seem to be missing the point.

                See above: you have not clearly stated your point or have mis-stated it.

                Franc Morales wrote:

                Are you a programmer?

                Check my profile before asking silly questions. I retract my well played - you didn't play well at all.

                "If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair. Those who seek perfection will only find imperfection nils illegitimus carborundum me, me, me me, in pictures

                P Offline
                P Offline
                Paulo Augusto Kunzel
                wrote on last edited by
                #9

                C'mon guys, you are missing the point!! What are you looking for? something free or paid? have you tried www.narrange.net/‎[^]

                B 1 Reply Last reply
                0
                • F Franc Morales

                  My god.

                  R Offline
                  R Offline
                  R Giskard Reventlov
                  wrote on last edited by
                  #10

                  Franc Morales wrote:

                  My god.

                  Indeed I am.

                  "If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair. Those who seek perfection will only find imperfection nils illegitimus carborundum me, me, me me, in pictures

                  M 1 Reply Last reply
                  0
                  • B bryce

                    oh no they're going to fight *sigh* Bryce

                    MCAD ---

                    R Offline
                    R Offline
                    R Giskard Reventlov
                    wrote on last edited by
                    #11

                    I would, but Japan is a little too far and I don't waste my time with humorless numptys.

                    "If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair. Those who seek perfection will only find imperfection nils illegitimus carborundum me, me, me me, in pictures

                    Richard Andrew x64R 1 Reply Last reply
                    0
                    • P Paulo Augusto Kunzel

                      C'mon guys, you are missing the point!! What are you looking for? something free or paid? have you tried www.narrange.net/‎[^]

                      B Offline
                      B Offline
                      Brisingr Aerowing
                      wrote on last edited by
                      #12

                      Link fail!

                      Keep Clam And Proofread -- √(-1) 23 ∑ π... And it was delicious.

                      P 1 Reply Last reply
                      0
                      • R R Giskard Reventlov

                        I would, but Japan is a little too far and I don't waste my time with humorless numptys.

                        "If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair. Those who seek perfection will only find imperfection nils illegitimus carborundum me, me, me me, in pictures

                        Richard Andrew x64R Offline
                        Richard Andrew x64R Offline
                        Richard Andrew x64
                        wrote on last edited by
                        #13

                        It sounded like you were saying that there's something wrong with him using a program to format his code instead of doing it himself manually. Is that the humor you say he is missing?

                        The difficult we do right away... ...the impossible takes slightly longer.

                        R 1 Reply Last reply
                        0
                        • F Franc Morales

                          I've been using the VS2012 extensions for AStyle and Uncrustify. The first does not quite work for me and the second does work somewhat but removes bookmarks and breakpoints every time it's run. What do you guys use?

                          F Offline
                          F Offline
                          Franc Morales
                          wrote on last edited by
                          #14

                          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.

                          L 1 Reply Last reply
                          0
                          • F Franc Morales

                            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.

                            L Offline
                            L Offline
                            Lost User
                            wrote on last edited by
                            #15

                            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

                            F 1 Reply Last reply
                            0
                            • L Lost User

                              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

                              F Offline
                              F Offline
                              Franc Morales
                              wrote on last edited by
                              #16

                              Thank you both. EDIT: Too simple a tool.

                              1 Reply Last reply
                              0
                              • F Franc Morales

                                I've been using the VS2012 extensions for AStyle and Uncrustify. The first does not quite work for me and the second does work somewhat but removes bookmarks and breakpoints every time it's run. What do you guys use?

                                S Offline
                                S Offline
                                Shuqian Ying
                                wrote on last edited by
                                #17

                                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 ...

                                Auto generated data services for querying stackExchange's GIS and ServerFault data sets. Email searcher Email Aggregation Manager[^].

                                F 1 Reply Last reply
                                0
                                • S Shuqian Ying

                                  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 ...

                                  Auto generated data services for querying stackExchange's GIS and ServerFault data sets. Email searcher Email Aggregation Manager[^].

                                  F Offline
                                  F Offline
                                  Franc Morales
                                  wrote on last edited by
                                  #18

                                  Yes, the built-in beautifier has improved somewhat but I'm afraid it is still not flexible enough. Thank you, though.

                                  1 Reply Last reply
                                  0
                                  • F Franc Morales

                                    I've been using the VS2012 extensions for AStyle and Uncrustify. The first does not quite work for me and the second does work somewhat but removes bookmarks and breakpoints every time it's run. What do you guys use?

                                    L Offline
                                    L Offline
                                    Lost User
                                    wrote on last edited by
                                    #19

                                    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')

                                    F 1 Reply Last reply
                                    0
                                    • L Lost User

                                      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')

                                      F Offline
                                      F Offline
                                      Franc Morales
                                      wrote on last edited by
                                      #20

                                      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...

                                      L 1 Reply Last reply
                                      0
                                      • F Franc Morales

                                        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...

                                        L Offline
                                        L Offline
                                        Lost User
                                        wrote on last edited by
                                        #21

                                        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')

                                        3 1 Reply Last reply
                                        0
                                        • R R Giskard Reventlov

                                          Franc Morales wrote:

                                          My god.

                                          Indeed I am.

                                          "If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair. Those who seek perfection will only find imperfection nils illegitimus carborundum me, me, me me, in pictures

                                          M Offline
                                          M Offline
                                          Marco Bertschi
                                          wrote on last edited by
                                          #22

                                          *Grabs popcorn*

                                          You know the world is going crazy when the best rapper is a white guy, the best golfer is a black guy, the tallest guy in the NBA is Chinese, the Swiss hold the America's Cup, France is accusing the U.S. of arrogance, Germany doesn't want to go to war, and the three most powerful men in America are named "Bush", "Dick", and "Colon."

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups