I am sure that I am not the only one in this matter, but I could not find the question. So I want to add a new unit to my project, the process goes like a right-click project → Add → New item → Enter a name → Choose .h as type → Hit Ok. Then repeat the whole process for the cpp file. A logical choice would be to have multiple choice support for choosing a file type, but this is not the case, at least in VS 2008. I see one reason for the lack of multiple choice, and this is because the dialogue would have to be a little smarter / different, because the location path will often not be identical.
My question naturally becomes: "Is there a better / faster way to add the cpp file and the corresponding header file to VS?"
source
share