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
 Move class to its own file
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

lance
New Member

4 Posts

Posted - Feb 20 2009 :  11:42:58 AM  Show Profile  Reply with Quote
Would be handy to be able to pick class, move to own file.

Would create the file in the current project - with default of the <name of the class>.h or .cs

Perhaps set up custom prefix.

I'm fairly sure I've had this before, and have definitely seen microsofties do it in tutorials with a couple of button presses.

Edited by - lance on Feb 20 2009 11:49:46 AM

feline
Whole Tomato Software

United Kingdom
19004 Posts

Posted - Feb 20 2009 :  12:36:44 PM  Show Profile  Reply with Quote
This has come up before.

The main problem is where do you put the new files? Where in the file system do you put them? Which project and folder in the IDE do you put the files into?

It is common in C++ to put the cpp and header files in different directories, which complicates matters further.

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

lance
New Member

4 Posts

Posted - Feb 23 2009 :  04:04:05 AM  Show Profile  Reply with Quote
I would as a starting point create them in the same place as the current file.
With C++ and msdev we now just rely on the project level 'filters' that look like files to separate headers from source.

Consider adding a couple of configuration options that will expand environment and VS variables.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19004 Posts

Posted - Feb 27 2009 :  12:54:00 PM  Show Profile  Reply with Quote
Most users who post file paths split header files from cpp files, placing them into different directories.

I do not know how common this is, this is not a "good" survey, but it is fairly common.

I am not against the idea, I just want to have a good idea of how it should work in standard cases, so it works well most of the time.

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