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

Code Beautifier

Scheduled Pinned Locked Moved The Lounge
question
17 Posts 11 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.
  • K Kacee Giger

    You probably want more than this--http://www.codeproject.com/macro/makecodenicer.asp[^], but it works well for what it's intended for.

    J Offline
    J Offline
    Joe Q
    wrote on last edited by
    #7

    If it's in Code Project it must be good! ;) Thanks, I'll try it.

    1 Reply Last reply
    0
    • M Maximilien

      I've used "Artistic Style" ( http://www.sourceforge.net/projects/astyle[^] ) and it's working fine, no big issues with it.


      Maximilien Lincourt Your Head A Splode - Strong Bad

      J Offline
      J Offline
      Joe Q
      wrote on last edited by
      #8

      Thanks, there's some good stuff in Sourceforge. I'll try it.

      1 Reply Last reply
      0
      • J Joe Q

        Can anyone recomend a free (or near free) code beautifier? I've Googled it and even tried a couple but I want to try to find one someone has used and had good experiances with. Thanks Joe Q

        R Offline
        R Offline
        Ravi Bhavnani
        wrote on last edited by
        #9

        I haven't tried any of these but wanted to point them out in case you missed some:

        • Code Chameleon ($30)[^]
        • PolyStyle ($80)[^]
        • SourceFormatX ($37)[^]
        • SemDesigns ($50)[^]

        /ravi

        My new year's resolution: 2048 x 1536 Home | Music | Articles | Freeware | Trips ravib(at)ravib(dot)com

        1 Reply Last reply
        0
        • P Pete OHanlon

          I don't need them. My code is always beautiful:laugh::laugh::laugh:.

          Arthur Dent - "That would explain it. All my life I've had this strange feeling that there's something big and sinister going on in the world." Slartibartfast - "No. That's perfectly normal paranoia. Everybody in the universe gets that." Deja View - the feeling that you've seen this post before.

          J Offline
          J Offline
          Joe Q
          wrote on last edited by
          #10

          My code is ready on time, does what it's suppose to do, it's readable, it's commented, and I usually write more than most people around here. And it's beautiful by my standards but they always want more. :sigh:

          1 Reply Last reply
          0
          • M Maximilien

            I've used "Artistic Style" ( http://www.sourceforge.net/projects/astyle[^] ) and it's working fine, no big issues with it.


            Maximilien Lincourt Your Head A Splode - Strong Bad

            E Offline
            E Offline
            El Corazon
            wrote on last edited by
            #11

            I've got artistic style set up as a quick access tool within Visual studio. Always handy. :)

            _________________________ Asu no koto o ieba, tenjo de nezumi ga warau. Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)

            1 Reply Last reply
            0
            • J Joe Q

              Can anyone recomend a free (or near free) code beautifier? I've Googled it and even tried a couple but I want to try to find one someone has used and had good experiances with. Thanks Joe Q

              R Offline
              R Offline
              Rama Krishna Vavilala
              wrote on last edited by
              #12

              I have used SourceFormatX long time back, and it worked pretty well for some old code. But since then I rely on the IDE. Recently, I wrote a basic JavaScript pretty printer, but probably that is not what you want. On a side note: I am surprised that Grand Negus (Osmosian) has not jumped into making statements like if you program in Plain English you don't need a Code Beautifier.


              Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it. -Brian Kernighan

              J P 2 Replies Last reply
              0
              • R Rama Krishna Vavilala

                I have used SourceFormatX long time back, and it worked pretty well for some old code. But since then I rely on the IDE. Recently, I wrote a basic JavaScript pretty printer, but probably that is not what you want. On a side note: I am surprised that Grand Negus (Osmosian) has not jumped into making statements like if you program in Plain English you don't need a Code Beautifier.


                Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it. -Brian Kernighan

                J Offline
                J Offline
                Joe Q
                wrote on last edited by
                #13

                Actually I code where you can read it pretty well. But that doesn't always fit the style guide. I have spaces in the wrong spots in functions calls, if I'm only returning or setting a flag I'll put it on the same line as an if statement. I've had my style for years and it's been in line with most style guides...just not the one I'm using now. Old habits are hard to break. Plus, for some reason, style is more important on this project. I wouldn't want to program in plain english...I speak english good.:laugh:

                1 Reply Last reply
                0
                • R Rama Krishna Vavilala

                  I have used SourceFormatX long time back, and it worked pretty well for some old code. But since then I rely on the IDE. Recently, I wrote a basic JavaScript pretty printer, but probably that is not what you want. On a side note: I am surprised that Grand Negus (Osmosian) has not jumped into making statements like if you program in Plain English you don't need a Code Beautifier.


                  Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it. -Brian Kernighan

                  P Offline
                  P Offline
                  peterchen
                  wrote on last edited by
                  #14

                  GC! GreatCode[^] - looked but never used it. It's a config orgy, but if that's your kind of game, you probably can tweak it to do exactly what you want it to do.


                  Developers, Developers, Developers, Developers, Developers, Developers, Velopers, Develprs, Developers!
                  We are a big screwed up dysfunctional psychotic happy family - some more screwed up, others more happy, but everybody's psychotic joint venture definition of CP
                  Linkify!|Fold With Us!

                  J 1 Reply Last reply
                  0
                  • J Joe Q

                    Can anyone recomend a free (or near free) code beautifier? I've Googled it and even tried a couple but I want to try to find one someone has used and had good experiances with. Thanks Joe Q

                    W Offline
                    W Offline
                    WillemM
                    wrote on last edited by
                    #15

                    Ctrl+K Ctrl+F in Visual Studio, does the trick for me :)

                    WM. What about weapons of mass-construction?

                    1 Reply Last reply
                    0
                    • P peterchen

                      GC! GreatCode[^] - looked but never used it. It's a config orgy, but if that's your kind of game, you probably can tweak it to do exactly what you want it to do.


                      Developers, Developers, Developers, Developers, Developers, Developers, Velopers, Develprs, Developers!
                      We are a big screwed up dysfunctional psychotic happy family - some more screwed up, others more happy, but everybody's psychotic joint venture definition of CP
                      Linkify!|Fold With Us!

                      J Offline
                      J Offline
                      Joe Q
                      wrote on last edited by
                      #16

                      I think that's the one I used and couldn't quite get it configured the way I needed it. I'm sure one of the MANY parameters did what I wanted, I just couldn't find it.

                      1 Reply Last reply
                      0
                      • S Stefan Baka

                        Try using indent, it's a Gnu Code Beautification. Indent is a tool for formatting C code. Hope this helps You as it helped me. Best Regards Stefan

                        R Offline
                        R Offline
                        Ryan Binns
                        wrote on last edited by
                        #17

                        Stefan Baka wrote:

                        Try using indent, it's a Gnu Code Beautification. Indent is a tool for formatting C code.

                        Yeah, but completely useless if you want to be able to read the output...

                        Ryan

                        "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"

                        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