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. There are times when I wonder what MS developers are smoking...

There are times when I wonder what MS developers are smoking...

Scheduled Pinned Locked Moved The Lounge
visual-studiotoolsquestionlounge
49 Posts 33 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.
  • M Marc Clifton

    Even more bizarre is that someone had the foresight to make that behavior configurable. Marc

    Imperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project!

    K Offline
    K Offline
    kdmote
    wrote on last edited by
    #40

    What's bizarre is why y'all are making such a deal of it. It's a FEATURE. You put your cursor on any line (w/out selecting anything) and Ctrl-C copies the whole line. That's useful. No mouse necessary. You DO know that VS has unlimited memory on the clipboard, right? If you accidentally copy something when you meant to paste, just Ctrl-Shift-V a couple times and VS will cycle back through your recent clipboard items. Easy workaround to your stated problem. Chill. No smoking necessary.

    M 1 Reply Last reply
    0
    • K kdmote

      What's bizarre is why y'all are making such a deal of it. It's a FEATURE. You put your cursor on any line (w/out selecting anything) and Ctrl-C copies the whole line. That's useful. No mouse necessary. You DO know that VS has unlimited memory on the clipboard, right? If you accidentally copy something when you meant to paste, just Ctrl-Shift-V a couple times and VS will cycle back through your recent clipboard items. Easy workaround to your stated problem. Chill. No smoking necessary.

      M Offline
      M Offline
      Marc Clifton
      wrote on last edited by
      #41

      kdmote wrote:

      just Ctrl-Shift-V a couple times and VS will cycle back through your recent clipboard items.

      Huh, no I didn't know that! Caveman Marc

      Imperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project!

      1 Reply Last reply
      0
      • OriginalGriffO OriginalGriff

        There's been a niggle with VS for me for a while: I use CTRL+C and CTRL+V to copy and paste, but they are close together and occasionally I get a Copy when I wanted a Paste. Normally I just sigh, and go back to copy it again - but it annoys me a little when I'm on a blank line with nothing selected, and the Paste operation copies the blank line to the clipboard. Why? Why do that? Well, it's deliberate: there's an option to specifically do that.

        Tools -> Options -> Text Editor -> All Languages -> General ... "Apply Cut or Copy commands to blank lines when there is no selection"

        And for whatever reason the default state is "Yes, copy a damn blank line to the clipboard when there is no selection". Why, Microsoft? Why? :doh:

        Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

        P Offline
        P Offline
        patbob
        wrote on last edited by
        #42

        OriginalGriff wrote:

        Why, Microsoft? Why? :doh:

        I've been observing that for decades. I've concluded that its part of a secret Programmer Works Initiative campaign they're running. They make poor design choices and poor choices of defaults simply to keep more of us employed. Its working. Thanks Microsoft. This is a joke. This is only a joke. Had this been a serious posting... :)

        We can program with only 1's, but if all you've got are zeros, you've got nothing.

        1 Reply Last reply
        0
        • OriginalGriffO OriginalGriff

          IIRC, copy only ever did anything at all if there was a selection - and most apps work that way even today. The whole idea of copy working on non-selected data is bad, I think - but I wish it worked in MS error message boxes where you can't select anything anyway! :laugh:

          Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

          T Offline
          T Offline
          Tony D Great
          wrote on last edited by
          #43

          Using copy on a line with nothing selected actually copies the whole line including CRLF; pasting that puts the whole line you just blank-copied above the line where your cursor is sitting. SSMS, VS and Sublime all do it and it's pretty nice once you get the hang of it. Feel your pain on the MS error boxes though :wtf:

          1 Reply Last reply
          0
          • OriginalGriffO OriginalGriff

            There's been a niggle with VS for me for a while: I use CTRL+C and CTRL+V to copy and paste, but they are close together and occasionally I get a Copy when I wanted a Paste. Normally I just sigh, and go back to copy it again - but it annoys me a little when I'm on a blank line with nothing selected, and the Paste operation copies the blank line to the clipboard. Why? Why do that? Well, it's deliberate: there's an option to specifically do that.

            Tools -> Options -> Text Editor -> All Languages -> General ... "Apply Cut or Copy commands to blank lines when there is no selection"

            And for whatever reason the default state is "Yes, copy a damn blank line to the clipboard when there is no selection". Why, Microsoft? Why? :doh:

            Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

            U Offline
            U Offline
            User 10820082
            wrote on last edited by
            #44

            I regularly use cut without a selection as the most convenient way to delete a line, blank or not. It's faster than selecting and deleting. Copy less so (on a blank line) but it's consistent with cut. I use copy on non blank lines a lot though. As for the Shift+insert etc keys, I believe their longevity is linked to their utility for left handers (use the left hand for the mouse). Despite using them back in the DOS days, I really burnt their use in to my brain when I had to swap my mouse hand.

            1 Reply Last reply
            0
            • F Freak30

              VS 6.0 had the much more useful option: Enable copy without selection. One of the first things I did after each installation was switching off this option. This way I was protected from almost all accidental copying. I was quite mad when I discovered they changed the option to only apply to empty lines in later versions. :mad: I don't even bother to change the setting nowadays, because most of the time when I want to paste, the cursor is on a non-empty line making the option worthless to me.

              The good thing about pessimism is, that you are always either right or pleasently surprised.

              U Offline
              U Offline
              User 10820082
              wrote on last edited by
              #45

              When using line copy paste, the contents are inserted on the line above regardless of your cursor position. This makes it a simple way to move a line.

              1 Reply Last reply
              0
              • OriginalGriffO OriginalGriff

                There's been a niggle with VS for me for a while: I use CTRL+C and CTRL+V to copy and paste, but they are close together and occasionally I get a Copy when I wanted a Paste. Normally I just sigh, and go back to copy it again - but it annoys me a little when I'm on a blank line with nothing selected, and the Paste operation copies the blank line to the clipboard. Why? Why do that? Well, it's deliberate: there's an option to specifically do that.

                Tools -> Options -> Text Editor -> All Languages -> General ... "Apply Cut or Copy commands to blank lines when there is no selection"

                And for whatever reason the default state is "Yes, copy a damn blank line to the clipboard when there is no selection". Why, Microsoft? Why? :doh:

                Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

                Y Offline
                Y Offline
                Yortw
                wrote on last edited by
                #46

                Probably it used to work that way by oversight back in v1 or something. They figured out it was dumb but were afraid of upsetting users by changing existing functionality (something they've gotten over :( ), hence the option being added to turn it off. Of course the default is on so no one used to the old behaviour complains. Can't really see why it's useful myself, but backwards compatibility and options for all the things used to be MS' forte.

                1 Reply Last reply
                0
                • OriginalGriffO OriginalGriff

                  Nope, never heard of that one! :sigh: There are times, Microsoft...and inventing a cure for a problem you cause without actually curing the problem...

                  Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

                  O Offline
                  O Offline
                  Oleg A Lukin
                  wrote on last edited by
                  #47

                  It really does wonders to paste what you intended originally. I never heard about this combination myself until my colleague has told me about it when I was grumbling pretty much like you about empty line copied to clipboard instead of pasting

                  Banking establishments are more dangerous than standing armies. T.Jefferson

                  1 Reply Last reply
                  0
                  • OriginalGriffO OriginalGriff

                    There's been a niggle with VS for me for a while: I use CTRL+C and CTRL+V to copy and paste, but they are close together and occasionally I get a Copy when I wanted a Paste. Normally I just sigh, and go back to copy it again - but it annoys me a little when I'm on a blank line with nothing selected, and the Paste operation copies the blank line to the clipboard. Why? Why do that? Well, it's deliberate: there's an option to specifically do that.

                    Tools -> Options -> Text Editor -> All Languages -> General ... "Apply Cut or Copy commands to blank lines when there is no selection"

                    And for whatever reason the default state is "Yes, copy a damn blank line to the clipboard when there is no selection". Why, Microsoft? Why? :doh:

                    Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

                    R Offline
                    R Offline
                    RASPeter
                    wrote on last edited by
                    #48

                    Obviously, it's that way so that noobs can more efficiently spam copy/pasta. Formatting is preserved so to facilitate finding and editing the magic numbers.

                    1 Reply Last reply
                    0
                    • P Private Dobbs

                      TextPad ... :doh:

                      E Offline
                      E Offline
                      englebart
                      wrote on last edited by
                      #49

                      TextPad failed on a 15Gig file with 5.9Gigs of available memory. It was worth a try! Thanks for the suggestion. "The file size exceeds the limit allowed and cannot be saved." I don't really need an editor for these large files, just a viewer! I found some other suggestions I will try.

                      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