Automatically open a header file when cpp file is opened

  • Thread starter Thread starter VanillaSnake21
  • Start date Start date
V

VanillaSnake21

Guest
I've got an idea for an extension but I don't know if there is anything out there already that does the job.


I often find myself working on classes and having to switch between the source and header pretty often to correct some function definition or add a new member. I've got it set up where I have one monitor showing the headers for the files I'm working on while the other the cpp files. However I'd like to take it a step further and have the studio automatically pull up the paired file on my other monitor when I open its sibling.


I'd also like to be able to track where in the source file I'm working on and automatically scroll the header to that location. For example say I start editing some method in the header file, I'd like the extension to open the same named cpp file and scroll to the definition of the method I'm editing, then if I switch to editing another definition within that same header file it would automatically scroll the already open cpp file window to the location of that other method. And vise versa.

I'd like to know if any similar extension already exists and how difficult would it be to write this with the VS SDK? Thanks.


Faith is being sure of what we hope for and certain of what we do not see.

Continue reading...
 
Back
Top