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
 Colons:: instead of a periods in Context type name
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

DBlake
New Member

4 Posts

Posted - Aug 16 2025 :  01:25:17 AM  Show Profile  Reply with Quote
VA has a nice feature that allows you to copy the full name of a variable or function type to the clipboard by clicking on it.
The only annoying thing is that after pasting the type name, you have to manually replace the dots in the type name with double colons.
There should be a setting for such a simple operation, but I have never seen one.

For example:
Poco.CppParser.Parser.isKeyword
to
Poco::CppParser::Parser::isKeyword




feline
Whole Tomato Software

United Kingdom
19203 Posts

Posted - Aug 18 2025 :  07:36:02 AM  Show Profile  Reply with Quote
This has actually come up, a long time ago, but this is actually a good reason to consider this change:

case=8758

Having said that, where are you pasting the copied full name? If you are searching for the symbol in your code then Alt-G would be a better solution.

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

DBlake
New Member

4 Posts

Posted - Aug 18 2025 :  09:58:17 AM  Show Profile  Reply with Quote
Thank you for creating the case. I know about Alt+G and use it regularly.

I use copying from the field all the time, since we hardly ever use `auto` because it's bad practice.
Instead, I copy and paste full type name.
This improves code readability and makes Intellisense's job easier, especially in all kinds of custom smart pointers and containers.
Because at such moments, `VA Find References Results` often fails to find class fields that are declared as `auto`.

So Intellisense is much more important than saving 2 seconds of time by writing `auto` instead of the full type.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19203 Posts

Posted - Aug 19 2025 :  09:02:33 AM  Show Profile  Reply with Quote
This makes sense.

VA does have a command to help you here though, "Replace Auto with Type". It is available via the main menu or the Alt-Shift-Q context menu. Consider the very simple example:

auto stdStringDirect = std::string("simple new string");


and you can trigger this command by placing the keyboard caret into either "auto" or "stdStringDirect", and it converts the line into:

std::string stdStringDirect = std::string("simple new string");


which should speed up and simplify what you are doing.

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