Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Create File includes wrong header extension

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
WolfgangVogl Posted - Jul 15 2019 : 07:19:33 AM
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.
3   L A T E S T    R E P L I E S    (Newest First)
WolfgangVogl Posted - Jul 16 2019 : 01:17:40 AM
Thank you. .hpp is really a better default for me.
sean Posted - Jul 15 2019 : 12:20:13 PM
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
feline Posted - Jul 15 2019 : 11:56:42 AM
Oops, apologies for this. I have put in a bug report for this:

case=140917

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000