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
 Technical Support
 AddInclude should use <MyInclude>
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

weird.dreams
New Member

Germany
3 Posts

Posted - Apr 12 2010 :  09:18:09 AM  Show Profile  Reply with Quote
Hi there,
we are using includes to our own library like this:

#include <common/dt_regex.h>


When using the refactoring tool AddInclude, we always get an include line like:

#include "common/dt_regex.h"


Is it possible to change the "" to <> marks?
(I tried to put our library to the stable headers - but this did not work either).

Thx,
Andi

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Apr 12 2010 :  1:26:24 PM  Show Profile  Reply with Quote
Is the file "dt_regex.h" part of your solution? I am wondering if the directory this file lives in is part of your solution, so VA would expect it to be a local file, with a #include "" line.

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

weird.dreams
New Member

Germany
3 Posts

Posted - Apr 22 2010 :  04:46:11 AM  Show Profile  Reply with Quote
Hi again,
the file "dt_regex.h" is also part of our solution,
but it is also part of our "library" (no lib file - they are all part of our solution).

So directory dependend the local files must have "" and the lib files must have <>.

Is the possible with "stable source files" under project?

Thx,
Andi
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Apr 22 2010 :  12:50:19 PM  Show Profile  Reply with Quote
The stable source files might help, but this is not recommended. VA does not expect stable files to be part of the solution, and does not expect them to be edited all of the time.

You could write a simple IDE macro to do a search and replace on the current line to replace the double quotes with angle brackets, and bind this macro to a keyboard shortcut.

I know this is not ideal, but it is a quick and simple answer, that will make things easier for you.

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

v_v
Senior Member

Russia
29 Posts

Posted - Oct 04 2010 :  01:47:37 AM  Show Profile  Reply with Quote
Hello!
I have similar issue.
We have a code style instructions that obliges us always use #include <> (due to search order depending on project settings). Is it possible to make VA always use one type of quotas? (throw registry settings may be)

Thank you in advance,
Valerij
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Oct 08 2010 :  5:12:09 PM  Show Profile  Reply with Quote
Apologies for the delay, I have put in a feature request for this, to see what our developers make of it:

case=51056

I can see how a setting like this this might be useful some of the time.

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

support
Whole Tomato Software

5566 Posts

Posted - Nov 12 2010 :  3:24:16 PM  Show Profile  Reply with Quote
case=51056 is implemented in build 1836

Create or modify the following DWORD value in the registry:

HKEY_CURRENT_USER\\Software\\Whole Tomato\\Visual Assist X\\VANet8\\AddIncludeTokenStyle = 0

Replace "VANet8" with "VANet10" for Visual Studio 2010
Replace "VANet8" with "VANet9" for Visual Studio 2008
Replace "VANet8" with "VANet" for Visual Studio 2003
Replace "VANet8" with "VA6" for Visual C++ 6

Supported values:
0 = default, current behavior
1 = force use of ""
2 = force use of <>

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