Visual C ++: auto-enable refactoring when moving / renaming files

I just moved from CodeBlocks to Visual Studio 2013 and this is my first time using VS2013. My CodeBlocks project used virtual folders for the structure while keeping all the "physical" files in one directory (I know, I know ...) So I just spent an incredibly tedious 45 minutes replicating this structure with the actual folders, creating folders and moving files around. The worst part was, for each header file, I had to run the find and replace command as shown below to update its path: #include "ObjectPtrArray.h" => #include "Structures / ObjectPtrArray.h"

It's a pretty big project (120+ source files) and I'm going to do a lot, a lot more refactoring in the coming days. Many of these will involve renaming classes, splitting them apart, creating new folders, moving files from folder to folder, etc. So can I automate this process? those. if I have a header file Tiles / SceneMap.h and I move it to Graphics / Tiles / SceneMap.h can Visual Studio (or an extension for it) automatically update all incoming links referencing this file without me running the search and replace manually?

I have ReSharper, but when I right click on the file, the Refactor menu is empty. Is there another extension I can use to do this (preferably not to conflict with ReSharper?)

Thank you for your time!

+3


source to share





All Articles