Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 Inlay parameter name hints

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
Skylonxe Posted - Apr 13 2020 : 2:51:19 PM
I am really missing this when compared to Resharper.


https://www.jetbrains.com/help/resharper/Inline_Parameter_Name_Hints.html

I come from Unreal Engine project and Epic Games standards encourage this style:

// Old style
Trigger(TEXT("Soldier"), 5, true);.

// New style
const FName ObjectName                = TEXT("Soldier");
const float CooldownInSeconds         = 5;
const bool bVulnerableDuringCooldown  = true;
Trigger(ObjectName, CooldownInSeconds, bVulnerableDuringCooldown);

https://docs.unrealengine.com/en-US/Programming/Development/CodingStandard/index.html

While this look like it makes code more readable it also clutters the code and expands it�s length multiple times. I think this is ugly workaround for missing named parameters in C++. It is something what should be solved either by C++ standard (C++20 has partial solution) or by IDE (Resharper plugin already supports it). Writing it using local parameters would create code clutter which would be left there even after official support from C++ or IDE.
Personally, I think that even including named parameters into language, like other languages do, is not good solution as it encourages writing same code (variable name) twice.

It would awesome if Visual Assist supported it!
3   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Apr 24 2020 : 07:11:35 AM
It is certainly a sensible idea, but since we have to work around behind the IDE's back, it will take time to see how easily and well we can do this.
KeyC0de Posted - Apr 23 2020 : 1:07:48 PM
Indeed, this is so much needed. Actually I have already posted a feature request about this on this forum here: https://forums.wholetomato.com/forum/topic.asp?TOPIC_ID=16750
feline Posted - Apr 14 2020 : 10:44:45 AM
We are considering adding a feature like this at some point:

case=141699

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