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. Visual Studio - MoveToRegion

Visual Studio - MoveToRegion

Scheduled Pinned Locked Moved The Lounge
visual-studiocsharphelpquestion
22 Posts 6 Posters 9 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.
  • OriginalGriffO OriginalGriff

    Paint blue circles on your eyelids, prop yourself in front of some complex code, and try not to snore... :laugh:

    Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952) Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)

    M Offline
    M Offline
    Matt U
    wrote on last edited by
    #9

    That made me of this[^]. :doh:

    djj55: Nice but may have a permission problem Pete O'Hanlon: He has my permission to run it.

    1 Reply Last reply
    0
    • M Matt U

      I actually downloaded the source for MoveToRegionVSX. It's actually a project hosted on CP. I'm going to attempt to convert it to VS2012. :sigh:

      djj55: Nice but may have a permission problem Pete O'Hanlon: He has my permission to run it.

      R Offline
      R Offline
      Ron Nicholson
      wrote on last edited by
      #10

      I'd use it for VS2013. :-D

      Jack of all trades, master of none, though often times better than master of one.

      M 1 Reply Last reply
      0
      • M Matt U

        While watching one of my colleagues write some code the other day, I noticed he would create properties for several fields in a class, and then he'd have to paste them together, and then cut/paste the entire block inside a #region for properties. It seemed like quite a tedious process, so I began looking at VS extensions (we use VS2012). I found "MoveToRegionVSX", but apparently it doesn't support VS2012. Are there any other similar extensions for 2012? I was looking for something so that we could just highlight a block of code and easily move it to the desired #region. I had no luck whatsoever. I downloaded one called CodeMaid, and you can drag things around the outline to rearrange the code file. But you can only drag/drop one property at a time. I was thinking more of a keyboard shortcut for the entire selection. Any ideas?

        djj55: Nice but may have a permission problem Pete O'Hanlon: He has my permission to run it.

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

        Why would you not create the region first if it doesn't exist and then create the properties inside or simply open the region and create them inside? Am I missing something?

        "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
        • R R Giskard Reventlov

          Why would you not create the region first if it doesn't exist and then create the properties inside or simply open the region and create them inside? Am I missing something?

          "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
          Matt U
          wrote on last edited by
          #12

          The guy I watched created the properties used the Ctrl+R, Ctrl+E shortcut chord. It places it directly under the field in the code. He didn't manually type out the properties.

          djj55: Nice but may have a permission problem Pete O'Hanlon: He has my permission to run it.

          1 Reply Last reply
          0
          • M Matt U

            I actually downloaded the source for MoveToRegionVSX. It's actually a project hosted on CP. I'm going to attempt to convert it to VS2012. :sigh:

            djj55: Nice but may have a permission problem Pete O'Hanlon: He has my permission to run it.

            M Offline
            M Offline
            Muhammad Gouda
            wrote on last edited by
            #13

            Nice idea, I which I had time to update it .. keep me notified when it is don I hope my code is readable and easy to extend

            foreach(Minute m in MyLife) myExperience++;

            M 1 Reply Last reply
            0
            • M Matt U

              I actually downloaded the source for MoveToRegionVSX. It's actually a project hosted on CP. I'm going to attempt to convert it to VS2012. :sigh:

              djj55: Nice but may have a permission problem Pete O'Hanlon: He has my permission to run it.

              M Offline
              M Offline
              Muhammad Gouda
              wrote on last edited by
              #14

              Nice idea, I which I had time to update it .. keep me notified when it is done I hope my code is readable and easy to extend Best of Luck

              foreach(Minute m in MyLife) myExperience++;

              1 Reply Last reply
              0
              • M Muhammad Gouda

                Nice idea, I which I had time to update it .. keep me notified when it is don I hope my code is readable and easy to extend

                foreach(Minute m in MyLife) myExperience++;

                M Offline
                M Offline
                Matt U
                wrote on last edited by
                #15

                I completed it on Friday, but the project is at work, not at home. All I did was update the project references to use the Visual Studio 2012 SDK. I don't recall the need to make any code changes. I tested it with my VS2012 at work and it seemed to function properly. :-D

                djj55: Nice but may have a permission problem Pete O'Hanlon: He has my permission to run it.

                M 1 Reply Last reply
                0
                • M Matt U

                  I completed it on Friday, but the project is at work, not at home. All I did was update the project references to use the Visual Studio 2012 SDK. I don't recall the need to make any code changes. I tested it with my VS2012 at work and it seemed to function properly. :-D

                  djj55: Nice but may have a permission problem Pete O'Hanlon: He has my permission to run it.

                  M Offline
                  M Offline
                  Muhammad Gouda
                  wrote on last edited by
                  #16

                  Excellent :thumbsup: I will update the article soon with your point

                  foreach(Minute m in MyLife) myExperience++;

                  M 1 Reply Last reply
                  0
                  • R Ron Nicholson

                    I'd use it for VS2013. :-D

                    Jack of all trades, master of none, though often times better than master of one.

                    M Offline
                    M Offline
                    Muhammad Gouda
                    wrote on last edited by
                    #17

                    Hi Ron Did it work with you on VS 2013? As per Matt U, you are supposed to just update the project references to use the Visual Studio 2013 SDK. Please, keep me updated to update the article accordingly Thanks for your cooperation :thumbsup:

                    foreach(Minute m in MyLife) myExperience++;

                    R 1 Reply Last reply
                    0
                    • M Muhammad Gouda

                      Excellent :thumbsup: I will update the article soon with your point

                      foreach(Minute m in MyLife) myExperience++;

                      M Offline
                      M Offline
                      Matt U
                      wrote on last edited by
                      #18

                      Awesome! :) All I did was install the Visual Studio 2012 SDK, load and upgrade the project from VS2010 to VS2012, remove VS2010 SDK references, and add the ones for VS2012. If you have anymore questions you can message me on here or something. I'll gladly help out. :)

                      djj55: Nice but may have a permission problem Pete O'Hanlon: He has my permission to run it.

                      M 1 Reply Last reply
                      0
                      • M Muhammad Gouda

                        Hi Ron Did it work with you on VS 2013? As per Matt U, you are supposed to just update the project references to use the Visual Studio 2013 SDK. Please, keep me updated to update the article accordingly Thanks for your cooperation :thumbsup:

                        foreach(Minute m in MyLife) myExperience++;

                        R Offline
                        R Offline
                        Ron Nicholson
                        wrote on last edited by
                        #19

                        Muhammad, Yes it worked fine. I now have it in 2013 and 2010. And working fine in both. Sorry for the late reply, I got busy. Go figure. :)

                        Jack of all trades, master of none, though often times better than master of one.

                        M 1 Reply Last reply
                        0
                        • R Ron Nicholson

                          Muhammad, Yes it worked fine. I now have it in 2013 and 2010. And working fine in both. Sorry for the late reply, I got busy. Go figure. :)

                          Jack of all trades, master of none, though often times better than master of one.

                          M Offline
                          M Offline
                          Muhammad Gouda
                          wrote on last edited by
                          #20

                          Thanks a lot Ron for your help I have updated the article based on your valued input Check it here[^]

                          foreach(Minute m in MyLife) myExperience++;

                          1 Reply Last reply
                          0
                          • M Matt U

                            Awesome! :) All I did was install the Visual Studio 2012 SDK, load and upgrade the project from VS2010 to VS2012, remove VS2010 SDK references, and add the ones for VS2012. If you have anymore questions you can message me on here or something. I'll gladly help out. :)

                            djj55: Nice but may have a permission problem Pete O'Hanlon: He has my permission to run it.

                            M Offline
                            M Offline
                            Muhammad Gouda
                            wrote on last edited by
                            #21

                            Thanks a lot Matt U for your help I have updated the article based on your valued input Check it here[^]

                            foreach(Minute m in MyLife) myExperience++;

                            M 1 Reply Last reply
                            0
                            • M Muhammad Gouda

                              Thanks a lot Matt U for your help I have updated the article based on your valued input Check it here[^]

                              foreach(Minute m in MyLife) myExperience++;

                              M Offline
                              M Offline
                              Matt U
                              wrote on last edited by
                              #22

                              Great, glad I could help! :)

                              djj55: Nice but may have a permission problem Pete O'Hanlon: He has my permission to run it.

                              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