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. I Wish Visual Studio Had a Read-Only Lock

I Wish Visual Studio Had a Read-Only Lock

Scheduled Pinned Locked Moved The Lounge
visual-studiocsharpcomquestion
8 Posts 6 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.
  • A Offline
    A Offline
    AspDotNetDev
    wrote on last edited by
    #1

    Sometimes I have multiple instances of Visual Studio open, looking at code in one while writing and running code in the other. Only, I sometimes confuse the two of them and run the one I am supposed to only be looking at, causing who knows what kind of havoc. :doh: Wouldn't it be nice if VS had a read-only mode so you couldn't accidentally modify/run that solution (a bit like the Forms designer that has a lock so you don't accidentally move elements around)? I suspect it would add years to my life in heart attacks avoided.

    Thou mewling ill-breeding pignut!

    M L L K M 5 Replies Last reply
    0
    • A AspDotNetDev

      Sometimes I have multiple instances of Visual Studio open, looking at code in one while writing and running code in the other. Only, I sometimes confuse the two of them and run the one I am supposed to only be looking at, causing who knows what kind of havoc. :doh: Wouldn't it be nice if VS had a read-only mode so you couldn't accidentally modify/run that solution (a bit like the Forms designer that has a lock so you don't accidentally move elements around)? I suspect it would add years to my life in heart attacks avoided.

      Thou mewling ill-breeding pignut!

      M Offline
      M Offline
      Mycroft Holmes
      wrote on last edited by
      #2

      AspDotNetDev wrote:

      looking at code in one while writing and running code in the other

      Bullshit, copy paste from the last project just like any VB programmer. I have trouble with SSMS query window, opening dev and UAT databases in the same instance of SSMS is fatal, I always start another instance. The number of times I have made a change to a stored proc, fired up the app and seen no difference is distressing.

      Never underestimate the power of human stupidity RAH

      L 1 Reply Last reply
      0
      • M Mycroft Holmes

        AspDotNetDev wrote:

        looking at code in one while writing and running code in the other

        Bullshit, copy paste from the last project just like any VB programmer. I have trouble with SSMS query window, opening dev and UAT databases in the same instance of SSMS is fatal, I always start another instance. The number of times I have made a change to a stored proc, fired up the app and seen no difference is distressing.

        Never underestimate the power of human stupidity RAH

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

        Mycroft Holmes wrote:

        opening dev and UAT databases in the same instance of SSMS is fatal

        Amen to that, brother!

        MVVM# - See how I did MVVM my way ___________________________________________ Man, you're a god. - walterhevedeich 26/05/2011 .\\axxx (That's an 'M')

        1 Reply Last reply
        0
        • A AspDotNetDev

          Sometimes I have multiple instances of Visual Studio open, looking at code in one while writing and running code in the other. Only, I sometimes confuse the two of them and run the one I am supposed to only be looking at, causing who knows what kind of havoc. :doh: Wouldn't it be nice if VS had a read-only mode so you couldn't accidentally modify/run that solution (a bit like the Forms designer that has a lock so you don't accidentally move elements around)? I suspect it would add years to my life in heart attacks avoided.

          Thou mewling ill-breeding pignut!

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

          I have, under similar circumstances, resorted to putting an uncommented line of code in the source I don't want to run, something like int c = "Don't run this because I just have it open for reference"; so i can't accidentally run it.

          MVVM# - See how I did MVVM my way ___________________________________________ Man, you're a god. - walterhevedeich 26/05/2011 .\\axxx (That's an 'M')

          1 Reply Last reply
          0
          • A AspDotNetDev

            Sometimes I have multiple instances of Visual Studio open, looking at code in one while writing and running code in the other. Only, I sometimes confuse the two of them and run the one I am supposed to only be looking at, causing who knows what kind of havoc. :doh: Wouldn't it be nice if VS had a read-only mode so you couldn't accidentally modify/run that solution (a bit like the Forms designer that has a lock so you don't accidentally move elements around)? I suspect it would add years to my life in heart attacks avoided.

            Thou mewling ill-breeding pignut!

            L Offline
            L Offline
            Luc Pattyn
            wrote on last edited by
            #5

            Yes a RO option would be nice. The next best thing might be a different background color, and that is easy to achieve (menu Tools/Options/Environment/Fonts and Colors: DisplayItem=Plain Text, Background Color=Yellow). It will be persisted and applies to all instances, so you have to apply the change every time you launch and close down; I guess someone will figure out either a Project Configuration thingy, an add-on, a macro, whatever it takes. :)

            Luc Pattyn [My Articles] Nil Volentibus Arduum

            M 1 Reply Last reply
            0
            • L Luc Pattyn

              Yes a RO option would be nice. The next best thing might be a different background color, and that is easy to achieve (menu Tools/Options/Environment/Fonts and Colors: DisplayItem=Plain Text, Background Color=Yellow). It will be persisted and applies to all instances, so you have to apply the change every time you launch and close down; I guess someone will figure out either a Project Configuration thingy, an add-on, a macro, whatever it takes. :)

              Luc Pattyn [My Articles] Nil Volentibus Arduum

              M Offline
              M Offline
              Mycroft Holmes
              wrote on last edited by
              #6

              Luc Pattyn wrote:

              The next best thing might be a different background color

              Oh you mean like the pretty tab colouring in IE when you open a related tab. Cute!

              Never underestimate the power of human stupidity RAH

              1 Reply Last reply
              0
              • A AspDotNetDev

                Sometimes I have multiple instances of Visual Studio open, looking at code in one while writing and running code in the other. Only, I sometimes confuse the two of them and run the one I am supposed to only be looking at, causing who knows what kind of havoc. :doh: Wouldn't it be nice if VS had a read-only mode so you couldn't accidentally modify/run that solution (a bit like the Forms designer that has a lock so you don't accidentally move elements around)? I suspect it would add years to my life in heart attacks avoided.

                Thou mewling ill-breeding pignut!

                K Offline
                K Offline
                krmed
                wrote on last edited by
                #7

                Perhaps the VS Tools/Options/Environment under Documents you can uncheck the Allow editing of read-only files... Then change the files in your model project to read-only (or have them in source control). HTH

                Karl - WK5M PP-ASEL-IA (N43CS) PGP Key: 0xDB02E193 PGP Key Fingerprint: 8F06 5A2E 2735 892B 821C 871A 0411 94EA DB02 E193

                1 Reply Last reply
                0
                • A AspDotNetDev

                  Sometimes I have multiple instances of Visual Studio open, looking at code in one while writing and running code in the other. Only, I sometimes confuse the two of them and run the one I am supposed to only be looking at, causing who knows what kind of havoc. :doh: Wouldn't it be nice if VS had a read-only mode so you couldn't accidentally modify/run that solution (a bit like the Forms designer that has a lock so you don't accidentally move elements around)? I suspect it would add years to my life in heart attacks avoided.

                  Thou mewling ill-breeding pignut!

                  M Offline
                  M Offline
                  Mark_Wallace
                  wrote on last edited by
                  #8

                  just type "banana" at the head of the file, and remember not to check it in.

                  I wanna be a eunuchs developer! Pass me a bread knife!

                  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