Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 Create File includes wrong header extension
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

WolfgangVogl
New Member

Germany
9 Posts

Posted - Jul 15 2019 :  07:19:33 AM  Show Profile  Reply with Quote
I really like the functionality of the VA Toolset "Move Implementation to Source File" - great feature! Thanks for it!
Starting with a header file, implement something and then, move it to a (non existent) source file really improves my workflow.

Lets say I start with "JustAnotherClass.hpp" - as mentioned before, my .cpp file (JustAnotherClass.cpp) does not exist before and Visual Assist tells me:
"Move Implementation to Source File failed to identify a suitable target source file.
Would you like to run Create File?"

I confirm and a file (JustAnotherClass.cpp) is created... so far so good - but in the newly created file the include directive is
#include "JustAnotherClass.h"
and not
#include "JustAnotherClass.hpp"

This is not particularly bad but in the long run somewhat disturbing.

Yes, we code!

Edited by - WolfgangVogl on Jul 15 2019 07:20:25 AM

feline
Whole Tomato Software

United Kingdom
16214 Posts

Posted - Jul 15 2019 :  11:56:42 AM  Show Profile  Reply with Quote
Oops, apologies for this. I have put in a bug report for this:

case=140917

zen is the art of being at one with the two'ness
Go to Top of Page

sean
Whole Tomato Software

USA
2737 Posts

Posted - Jul 15 2019 :  12:20:13 PM  Show Profile  Reply with Quote
The file template for Create Source File is rather brain dead and includes the ".h" extension directly in the template. Until we expand upon the Create Source File functionality, you can edit the "Create Source File" snippet and add "pp" if that is a better default.
VAssistX | Tools | Edit VA Snippets
Change "Type" to "Refactoring"
Find "Create Source File"
Edit the snippet and press OK to save the changes
Go to Top of Page

WolfgangVogl
New Member

Germany
9 Posts

Posted - Jul 16 2019 :  01:17:40 AM  Show Profile  Reply with Quote
Thank you. .hpp is really a better default for me.

Yes, we code!
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2019 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000