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
 auto-add include files
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

rtbunker
Starting Member

1 Posts

Posted - Aug 11 2006 :  12:20:16 AM  Show Profile  Reply with Quote
A cool feature in many java ides is the ability to automatically add imports for referenced files.

The analog in C++ would be to automatically include files for symbols that are not defined. The annoying thing is that when i use a class,enum,struct, etc... that hasn't been included i have to remember what file it's in and go add it to the includes.

I don't know if this is possible with the information you have, but it would really help because it's probably the largest number of errors that i have to fix, and it's iterative. i add one include, recompile, add the next, etc...

As a bonus, you could offer to alphabatize (or otherwise organize) the include files also.

The super bonus feature would be to remove an include file for which nothing is referenced in the current .cpp file.

thanks,
:)ross

feline
Whole Tomato Software

United Kingdom
19021 Posts

Posted - Aug 12 2006 :  3:50:37 PM  Show Profile  Reply with Quote
the idea to suggest missing #include lines has come up before:

case=226

you can already sort your #include lines, just select them and use VAssistX -> tools -> sort selected lines

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

support
Whole Tomato Software

5566 Posts

Posted - Jan 27 2009 :  10:39:01 PM  Show Profile  Reply with Quote
case=226 is implemented in build 1715
Hover over an unrecognized symbol and choose "Add include xxxx" from the refactoring context menu.


Whole Tomato Software, Inc.
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