Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 Definition field backslash vs forward slash option

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
Scooper Posted - Apr 02 2024 : 05:16:24 AM
The "Definition Field" in the VA Navigation Bar is very useful. But I often find myself needing to grab a path, or partial path, to a file from it.

This was even more urgent recently when the automatic include-header feature wasn't working properly. (This now works again, thank you).

But in any case I would very much like an option to have the path be displayed with forward slashes instead of backslashes.

Example from UE5 today:
quote:
\Engine\Source\Runtime\Engine\Classes\GameFramework\Character.h

I want to be able to see it as:
quote:
/Engine/Source/Runtime/Engine/Classes/GameFramework/Character.h
4   L A T E S T    R E P L I E S    (Newest First)
Scooper Posted - Apr 11 2024 : 2:21:22 PM
Thanks! Add include works in most cases, but I would appreciate if it becomes an option.
feline Posted - Apr 11 2024 : 11:34:39 AM
That makes sense, and I can see why this would be helpful now. I have put in a feature request to see what our developers make of this:

case=164446

Hopefully though Add Include works well enough most of the time, and you can set it to use / or \ via the IDE setting:

IDE tools menu -> Options -> Text Editor -> C/C++ -> Advanced -> Use Forward Slash in #include Auto Complete
Scooper Posted - Apr 02 2024 : 08:09:29 AM
Thank you for the quick reply! I understand why you have chosen this as the default behavior, so that is not a problem.

However; I use it to manually include some files sometimes, which means it by default ends up going with backslashes instead of forward slashes in my include paths. I then need to go and manually change them to forward slashes.
This is what I was referring to about how it was a bigger problem with the include-header bug from the previous version. I had to do this all the time.

I'm not sure if all our target platforms/compilers support backslashes in the include path, but in any case it is part of our code standard to use forward slashes in the include paths.
This is why I'm requesting this feature to be able to configure it, so that my workflow can be improved slightly.
Maybe my way of using it is unorthodox, but I do find it extremely useful for this. It would save me some minor annoyance if I didn't have to manually fix it every time.

I hope that clears it up.
feline Posted - Apr 02 2024 : 07:36:36 AM
At the risk of asking a silly question, why? VA is showing the windows path separator. I am guessing you are working partly on a non Windows system? Or do you have another reason to need this?

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000