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. Productivity Killer of the Day

Productivity Killer of the Day

Scheduled Pinned Locked Moved The Lounge
game-devtoolshelp
36 Posts 21 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.
  • C Chris Maunder

    Of course! Why didn't I think of that. It should probably be a VS extension, and should work with all current and future versions in all cultures. This could take weeks of procrastination productive time saving work.

    cheers Chris Maunder

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

    I think you are joking. :) There is a SED one-liner for finding any file recursively from a parent folder and printing any file that contains lines that end with a white space. You can also do it with PowerShell. I don't remember how to do either one of them off the top of my head. Best Wishes, -David Delaune

    1 Reply Last reply
    0
    • C Chris Maunder

      Looking for the line of code that has a tiny squiggle at the end because StyleCop analysers found a trailing whitespace and your code won't compile until you fix it. It's like a 12hr game of Where's Wally (or Where's Waldo for the North Americans)

      cheers Chris Maunder

      D Offline
      D Offline
      d_c_allison
      wrote on last edited by
      #22

      Maybe paste the code into a text-editor that allows you to search using regular expressions (i.e., Notepad++) and search using "^.+\s$"?

      P 1 Reply Last reply
      0
      • realJSOPR realJSOP

        Solution - toss Style Cop where it belongs.

        ".45 ACP - because shooting twice is just silly" - JSOP, 2010
        -----
        You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
        -----
        When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

        R Offline
        R Offline
        Rajesh R Subramanian
        wrote on last edited by
        #23

        Absolutely! This is well past where that tool has stopped being "productive" or helpful. :thumbsup:

        1 Reply Last reply
        0
        • L Lost User

          Chris Maunder wrote:

          For some reason solving those types of issues give me the greatest satisfaction. I dunno why.

          Cause they come with a free soy, decaf, almond milk latte?

          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

          R Offline
          R Offline
          Rajesh R Subramanian
          wrote on last edited by
          #24

          Has Anyone Seen Mike Hunt wrote:

          Cause they come with a free soy, decaf, almond milk latte?

          :laugh:

          1 Reply Last reply
          0
          • C Chris Maunder

            Looking for the line of code that has a tiny squiggle at the end because StyleCop analysers found a trailing whitespace and your code won't compile until you fix it. It's like a 12hr game of Where's Wally (or Where's Waldo for the North Americans)

            cheers Chris Maunder

            P Offline
            P Offline
            PIEBALDconsult
            wrote on last edited by
            #25

            For me, it's having CP ask me how I want to paste whenever I paste -- and then assuming the wrong default, which adds insult to injury. X|

            1 Reply Last reply
            0
            • C Chris Maunder

              One can dream...

              cheers Chris Maunder

              J Offline
              J Offline
              Jorgen Andersson
              wrote on last edited by
              #26

              That type of dream is normally referred to as a nightmare.

              Wrong is evil and must be defeated. - Jeff Ello

              1 Reply Last reply
              0
              • C Chris Maunder

                Looking for the line of code that has a tiny squiggle at the end because StyleCop analysers found a trailing whitespace and your code won't compile until you fix it. It's like a 12hr game of Where's Wally (or Where's Waldo for the North Americans)

                cheers Chris Maunder

                J Offline
                J Offline
                Jacquers
                wrote on last edited by
                #27

                If it's in VS then maybe something like CodeMaid can help by formatting / cleaning code.

                1 Reply Last reply
                0
                • L Lost User

                  Chris Maunder wrote:

                  For some reason solving those types of issues give me the greatest satisfaction. I dunno why.

                  Cause they come with a free soy, decaf, almond milk latte?

                  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

                  D Offline
                  D Offline
                  Daniel Pfeffer
                  wrote on last edited by
                  #28

                  Has Anyone Seen Mike Hunt wrote:

                  soy, decaf, almond milk latte

                  :wtf: I wouldn't give (or even sell) one of those to my worst enemy! Coffee should be black as sin, hotter than Hell, and sweeter than love.

                  Freedom is the freedom to say that two plus two make four. If that is granted, all else follows. -- 6079 Smith W.

                  L 1 Reply Last reply
                  0
                  • D Daniel Pfeffer

                    Has Anyone Seen Mike Hunt wrote:

                    soy, decaf, almond milk latte

                    :wtf: I wouldn't give (or even sell) one of those to my worst enemy! Coffee should be black as sin, hotter than Hell, and sweeter than love.

                    Freedom is the freedom to say that two plus two make four. If that is granted, all else follows. -- 6079 Smith W.

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

                    Daniel Pfeffer wrote:

                    :WTF: I wouldn't give (or even sell) one of those to my worst enemy!

                    That is a Maunder special.

                    Daniel Pfeffer wrote:

                    Coffee should be black as sin, hotter than Hell, and sweeter than love.

                    I have 4+ shots of espresso and then froth like a big machiato, no sugar, it ain't needed.

                    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

                    1 Reply Last reply
                    0
                    • D d_c_allison

                      Maybe paste the code into a text-editor that allows you to search using regular expressions (i.e., Notepad++) and search using "^.+\s$"?

                      P Offline
                      P Offline
                      Pete OHanlon
                      wrote on last edited by
                      #30

                      You can do regex searches in Visual Studio.

                      This space for rent

                      K 1 Reply Last reply
                      0
                      • C Chris Maunder

                        Looking for the line of code that has a tiny squiggle at the end because StyleCop analysers found a trailing whitespace and your code won't compile until you fix it. It's like a 12hr game of Where's Wally (or Where's Waldo for the North Americans)

                        cheers Chris Maunder

                        K Offline
                        K Offline
                        kalberts
                        wrote on last edited by
                        #31

                        Alternative approach: Switch programming language. Start using Whitespace.

                        1 Reply Last reply
                        0
                        • Richard DeemingR Richard Deeming

                          W∴ Balboos wrote:

                          Three unprintable characters to start the file.

                          Let me guess - are they: 0xEF, 0xBB, and 0xBF? If so, that would be the UTF8 Byte Order Mark: Byte order mark - Wikipedia[^]


                          "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

                          W Offline
                          W Offline
                          W Balboos GHB
                          wrote on last edited by
                          #32

                          I literally went over all of my failing files and cleaned it up. Seems about right. What I need to do, then, is find which editor/tool is adding that. Since I've some templates to get most new pages started, I just checked and found it in my primary editor. Somehow, it reminds me of the stoned virus in reverse. As long as I keep using templates. Same for various library-ish files. Only when something rather new is created does it show. Thanks and Kudos! * Templates to save me some work and keep users comfortable with something similar to what they've seen before.

                          Ravings en masse^

                          "The difference between genius and stupidity is that genius has its limits." - Albert Einstein

                          "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010

                          1 Reply Last reply
                          0
                          • P Pete OHanlon

                            You can do regex searches in Visual Studio.

                            This space for rent

                            K Offline
                            K Offline
                            kalberts
                            wrote on last edited by
                            #33

                            But... regex??? Do you do regex searches for "myvar" as well? A space followed by a newline is just as literal as "myvavar"; you don't need regex for either. The editor probably requires some sort of quoting or escaping for the newline, but quoting is just an external syntax required by the input scanner. Every now and then I replace with throughout the source files of the solution, in one single sweep. Well, sometimes in two or three, maybe even more: Every now and then I manage to create empty lines with spaces up to the indentiation of the neighbour lines. So I often start out with <4 spaces> and click "Replace all in entire solution" until "0 replacements made". Then I change <4 spaces> to and click the button up to three times more. You might say that clicking the same button up to three times in a row imposes such a strain on your index finger that you prefer to save effort by writing a regexp to do the equivalent. I'll bet that executing the regexp would slow down the replacement so that it would take more time to complete than my quick button clicks, even without conting the time for writing the regex and ensuring that it works as intended.

                            P 1 Reply Last reply
                            0
                            • K kalberts

                              But... regex??? Do you do regex searches for "myvar" as well? A space followed by a newline is just as literal as "myvavar"; you don't need regex for either. The editor probably requires some sort of quoting or escaping for the newline, but quoting is just an external syntax required by the input scanner. Every now and then I replace with throughout the source files of the solution, in one single sweep. Well, sometimes in two or three, maybe even more: Every now and then I manage to create empty lines with spaces up to the indentiation of the neighbour lines. So I often start out with <4 spaces> and click "Replace all in entire solution" until "0 replacements made". Then I change <4 spaces> to and click the button up to three times more. You might say that clicking the same button up to three times in a row imposes such a strain on your index finger that you prefer to save effort by writing a regexp to do the equivalent. I'll bet that executing the regexp would slow down the replacement so that it would take more time to complete than my quick button clicks, even without conting the time for writing the regex and ensuring that it works as intended.

                              P Offline
                              P Offline
                              Pete OHanlon
                              wrote on last edited by
                              #34

                              You're replying to the wrong person. I'm merely pointing out that you don't need to copy things outside the editor to run a regex.

                              This space for rent

                              1 Reply Last reply
                              0
                              • C Chris Maunder

                                Looking for the line of code that has a tiny squiggle at the end because StyleCop analysers found a trailing whitespace and your code won't compile until you fix it. It's like a 12hr game of Where's Wally (or Where's Waldo for the North Americans)

                                cheers Chris Maunder

                                D Offline
                                D Offline
                                Dan Neely
                                wrote on last edited by
                                #35

                                Dunno if it's baked in or an addon I'm using, but the auto-format that runs when I delete/replace the closing `}` at the end of a file eats end of line white space.

                                Did you ever see history portrayed as an old man with a wise brow and pulseless heart, weighing all things in the balance of reason? Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful? --Zachris Topelius Training a telescope on one’s own belly button will only reveal lint. You like that? You go right on staring at it. I prefer looking at galaxies. -- Sarah Hoyt

                                1 Reply Last reply
                                0
                                • C Chris Maunder

                                  Looking for the line of code that has a tiny squiggle at the end because StyleCop analysers found a trailing whitespace and your code won't compile until you fix it. It's like a 12hr game of Where's Wally (or Where's Waldo for the North Americans)

                                  cheers Chris Maunder

                                  R Offline
                                  R Offline
                                  Rage
                                  wrote on last edited by
                                  #36

                                  I'd rewrite all of it.

                                  Do not escape reality : improve reality !

                                  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