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
 Parameters numbers on hover
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

foxmuldr
Tomato Guru

USA
414 Posts

Posted - Sep 16 2014 :  09:13:46 AM  Show Profile  Reply with Quote
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

foxmuldr
Tomato Guru

USA
414 Posts

Posted - Sep 17 2014 :  03:54:12 AM  Show Profile  Reply with Quote
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.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19021 Posts

Posted - Sep 30 2014 :  6:56:15 PM  Show Profile  Reply with Quote
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.

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

foxmuldr
Tomato Guru

USA
414 Posts

Posted - Oct 01 2014 :  12:41:20 PM  Show Profile  Reply with Quote
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
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19021 Posts

Posted - Oct 01 2014 :  5:28:32 PM  Show Profile  Reply with Quote
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)

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