Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 Parameters numbers on hover

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
foxmuldr Posted - Sep 16 2014 : 09:13:46 AM
A lot of the Visual Studio compiler error messages say "parameter N some error message." It's not always easy to know which one parameter N is without reading through code which could extend beyond the editor window width.

I was thinking something like this might be desirable. The top shows an example of how it is now. The bottom shows the parameter numbers inserted in some way (here it's 1: but it could be [1], (1), 1.. or whatever):



Best regards,
Rick C. Hodgin
4   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Oct 01 2014 : 5:28:32 PM
If you use a macro, and walk along the current line, then you can watch out for function calls as parameters, by counting the round brackets and ignoring any comma's inside extra brackets. The other thing to watch for is commas inside literal strings, with the same solution here.

There are some sample IDE macros here, which should give you some ideas and starting points:

http://docs.wholetomato.com/default.asp?ixWiki=8&pg=pgSearchWiki&qWiki=tag:%22IDEmacro%22

For the prompt, this is how I did it in one of my macro's

Dim sCount As String = InputBox("Increase the number by (negative amount to reduce number):", "Increase Number")
' convert the string into a number
CLng(sCount)
foxmuldr Posted - Oct 01 2014 : 12:41:20 PM
quote:
Originally posted by feline
If you mainly have single line function calls then you could try writing an IDE macro to prompt for the parameter number, and then jump forward that number of comma's.


This is potentially problematic (as in cases like):
a = f1(b, c, f2(x, y, z), d, e);


How do you get the IDE to prompt you for input in a macro?

Best regards,
Rick C. Hodgin
feline Posted - Sep 30 2014 : 6:56:15 PM
The numbered tooltips solve the problem, but a command to jump to parameter N seems more useful. If you mainly have single line function calls then you could try writing an IDE macro to prompt for the parameter number, and then jump forward that number of comma's.

I can see this being rather helpful, so I have put in a feature request for the ability to jump to a given parameter, but you may well want to look into an IDE macro for now.
foxmuldr Posted - Sep 17 2014 : 03:54:12 AM
A related feature might be support for some two-key combinations of alt+p, N where N is a number 1..9 which takes you directly to the Nth parameter of the function name the caret is on, or if inside parentheses, the Nth parameter at the same level.

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