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
 Feature Requests
 Alt-O asking to create & add new "other" file
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

peterchen
Tomato Guru

126 Posts

Posted - Jan 10 2007 :  6:52:29 PM  Show Profile  Reply with Quote
I wonder if this has been asked before - but search didn't turn up anything.

If I have only a .h file, and press ALT-O, I would like VA to ask if it should create the corresponding.cpp file, and add it to the project.

Similary, If I have only a .cpp, you can ask to create the .h


feline
Whole Tomato Software

United Kingdom
18943 Posts

Posted - Jan 12 2007 :  09:50:15 AM  Show Profile  Reply with Quote
I like the idea, but I am a little wary of this for a couple of reasons.

Firstly it will quickly become very irritating if you have unpaired files, e.g. template classes that only exist in a header file. This will result in people wanting an option to suppress this behaviour.

Secondly there is a lot of variation in how people lay out their code files. Some put the two files in the same directory. Some have "project/src/foo.cpp" and "project/include/foo.h". I have seen various different layouts mentioned here over time.

What I do is place the caret at the top of the file (fast and easy ) and then copy the file name from the definition half of the VA wizard bar, and then feed this file name (CTRL-V) into the IDE's new file dialog. A quick and easy way of ensuring the file names match

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000