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. General Programming
  3. C / C++ / MFC
  4. Class and variable renaming

Class and variable renaming

Scheduled Pinned Locked Moved C / C++ / MFC
csharpvisual-studioquestion
3 Posts 3 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
    Alois Kraus
    wrote on last edited by
    #1

    I wonder if there is an easy way to rename a class including its source file in Visual Studio. Has .NET Studio any support for this :confused:? Variable renaming would also be a fine thing. Simply change the name in the class wizard and all occurences of the variable are renamed. This would make refactoring the code much easier when I change my code in the late stage of a project to clean up loose ends. Regards, Alois Kraus

    A A 2 Replies Last reply
    0
    • A Alois Kraus

      I wonder if there is an easy way to rename a class including its source file in Visual Studio. Has .NET Studio any support for this :confused:? Variable renaming would also be a fine thing. Simply change the name in the class wizard and all occurences of the variable are renamed. This would make refactoring the code much easier when I change my code in the late stage of a project to clean up loose ends. Regards, Alois Kraus

      A Offline
      A Offline
      AlexO
      wrote on last edited by
      #2

      Edit->Find and Replace->Replace in Files Check out the regular expression you pretty much can do anything old grep used to do.

      1 Reply Last reply
      0
      • A Alois Kraus

        I wonder if there is an easy way to rename a class including its source file in Visual Studio. Has .NET Studio any support for this :confused:? Variable renaming would also be a fine thing. Simply change the name in the class wizard and all occurences of the variable are renamed. This would make refactoring the code much easier when I change my code in the late stage of a project to clean up loose ends. Regards, Alois Kraus

        A Offline
        A Offline
        Alvaro Mendez
        wrote on last edited by
        #3

        Nope, you gotta do it the old fashioned way. Find/Replace. My guess why DevStudio doesn't have this feature is that it may be difficult to do accurately every time. They'd rather avoid the risk of renaming something inappropriately. Regards, Alvaro


        Well done is better than well said. -- Benjamin Franklin (I actually prefer medium-well.)

        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