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
 Includes expansion
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Phyronnaz
New Member

2 Posts

Posted - Feb 27 2019 :  7:49:07 PM  Show Profile  Reply with Quote
It would be nice if there was an "expand include" option.

For instance, if I have the following include:
#include "MessageLog.h"

I'd like to expand it to
#include "Logging/MessageLog.h"

VA already know the full path of the include (shown in the VA bar when the cursor is on the include).

feline
Whole Tomato Software

United Kingdom
18749 Posts

Posted - Mar 01 2019 :  07:39:23 AM  Show Profile  Reply with Quote
With the short include line, does the code compile?

I am trying to understand what your aim is here. If the code does not compile, and you need the directory name for the include file to be found, then VA should be offering Add Include, which should add the correct path to the filename in the include statement:

https://docs.wholetomato.com/default.asp?W177

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

Phyronnaz
New Member

2 Posts

Posted - Mar 01 2019 :  1:22:19 PM  Show Profile  Reply with Quote
I'm developing plugins for Unreal Engine.
"MessageLog.h"
is in the project includes paths, so when using Add Include VA (correctly) includes it that way.
However when building the includes paths are different due to how plugins are built in UE, and the correct include is then
"Logging/MessageLog.h"

When using Add Include, I have to manually edit every include to correct it, which is fine, I'd just like VA to help me a bit in that task.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18749 Posts

Posted - Mar 02 2019 :  05:03:13 AM  Show Profile  Reply with Quote
Are you able to edit the project include path list, so that you are editing with the same include path list as you will be compiling with? This way VA will add the correct path in the first place, avoiding this problem.

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