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
 #include forward/back slash
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

diarrhio
Ketchup Master

53 Posts

Posted - Mar 02 2009 :  4:04:09 PM  Show Profile  Reply with Quote
Is it possible to add an option for the slash that gets automatically inserted for you when you are #including to use forward slashes? Our application is x-platform and Linux doesn't like the back-slashes. It is a pain to go back and correct the slashes every time. Not a big deal, but just one of the many little things that end up slowing you down.

Thanks,
Dario

feline
Whole Tomato Software

United Kingdom
19024 Posts

Posted - Mar 03 2009 :  09:35:01 AM  Show Profile  Reply with Quote
What exactly are you doing?

Are you using the VA refactoring command "Add Include"? Or are you doing something else?

VA does not normally automatically add slashes to my #include statements when I am manually typing them, but it will add slashes if I accept a suggested directory name while typing in a #include statement.

We are looking to change Add Include in the next build so that it will use the path delimiter already in use in the current file:

case=23341

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

diarrhio
Ketchup Master

53 Posts

Posted - Mar 03 2009 :  11:12:44 PM  Show Profile  Reply with Quote
Sorry. Should have been more clear... actually, I didn't even know about the "Add Include" refactoring command. Cool!

All I am doing is typing something like:

#include <boo

if I select boost from the suggestion list box, it adds a backslash, which makes sense on windows. However, to be cross platform, we need forward slashes.

Thanks,
D
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19024 Posts

Posted - Mar 04 2009 :  09:51:55 AM  Show Profile  Reply with Quote
Are you doing this in an empty file, or does the file already contain some #include statements with slashes in them?

Using VS2005 and VA 1715 if I sit in a cpp file where none of the #include statements contain slashes and type:

#include <boo|>

and accept "boost" then I get:

#include <boost/>

but if I first add the line:

#include <boost\\algorithm\\minmax.hpp>

and re-try this test I end up with:

#include <boost\\>

VA has noticed which type of slash I am using, and is using the same one its self.

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

diarrhio
Ketchup Master

53 Posts

Posted - Mar 04 2009 :  11:25:17 AM  Show Profile  Reply with Quote
Looks like you are correct. It does behave as you describe. This is sufficient. Looks like VAX outsmarted me again :)
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19024 Posts

Posted - Mar 04 2009 :  12:04:49 PM  Show Profile  Reply with Quote
We do try

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

support
Whole Tomato Software

5566 Posts

Posted - Mar 30 2009 :  08:39:35 AM  Show Profile  Reply with Quote
case=23341 is implemented in build 1721

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