Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 Colons:: instead of a periods in Context type name

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
DBlake Posted - Aug 16 2025 : 01:25:17 AM
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




3   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Aug 19 2025 : 09:02:33 AM
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.
DBlake Posted - Aug 18 2025 : 09:58:17 AM
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.
feline Posted - Aug 18 2025 : 07:36:02 AM
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.

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