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
 Header files sort
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

.overlord.
New Member

3 Posts

Posted - Apr 08 2005 :  11:15:02 AM  Show Profile
Great product, I think it would be nice if you could sort your header files in your .cpp files. for instance, it would be nice to take my jumbled

<iostream>
"file/file.h"
<cmath>
"application/application.h"

let me highlight it and say "sort" and get

<cmath>
<iostream>

"application/application.h"
"file/file.h"

where the system <> includes go first, then the ""
all alphabetized and ordered hierarchically

i think this might help organize what can become a jumbled mess

Stephen
Tomato Guru

United Kingdom
781 Posts

Posted - Apr 08 2005 :  1:29:25 PM  Show Profile
VAX already does this (at least in VS.NET, don't know about VS 6). Right-click in the margin and choose "sort selected lines". (Also under VAX menu-Tools).

Stephen Turner
ClickTracks http://www.clicktracks.com/
Winner: ClickZ's Best Web Analytics Tool 2003 & 2004
Go to Top of Page

legion
Junior Member

Canada
12 Posts

Posted - Apr 08 2005 :  1:49:06 PM  Show Profile
How very odd, when I do that on the example given, I get

#include "file/file.h"
#include <cmath>
#include <iostream>
#include "application/application.h"

How exactly does it figure out what to sort it by?
Go to Top of Page

Stephen
Tomato Guru

United Kingdom
781 Posts

Posted - Apr 09 2005 :  04:07:05 AM  Show Profile
Hmmm, it works for me. You did select the lines first, did you? Are there any differences in the amount of white space on the various lines?

Stephen Turner
ClickTracks http://www.clicktracks.com/
Winner: ClickZ's Best Web Analytics Tool 2003 & 2004
Go to Top of Page

legion
Junior Member

Canada
12 Posts

Posted - Apr 09 2005 :  09:49:00 AM  Show Profile
hmmm, how odd. If I highlight the text from top to bottom, the sorting works just fine. But if I highlight from bottom to top, then it does what I said previously. However, once it's sorted correctly, either way makes no difference and it stays as it is.
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Apr 09 2005 :  11:02:45 AM  Show Profile
If you select from bottom to top and select only a portion of the top line, the top line is not sorted. Otherwise, selecting in either direction appears to work fine.

If you don't have a recent build, reinstall to make sure you have all the bug fixes.
Go to Top of Page

.overlord.
New Member

3 Posts

Posted - Apr 13 2005 :  12:02:37 PM  Show Profile
very very cool,

thanks
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000