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
 Positioning cursor for funcs without params
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Serg
New Member

3 Posts

Posted - Mar 25 2004 :  05:45:45 AM  Show Profile
It would nice to position cursor AFTER the right brace ')' for functions without params.

LarryLeonard
Tomato Guru

USA
1041 Posts

Posted - Mar 25 2004 :  09:55:50 AM  Show Profile
That would be nice.
Go to Top of Page

Old as dirt
Tomato Guru

USA
246 Posts

Posted - Mar 25 2004 :  10:29:06 AM  Show Profile
I like this idea too.

Ken
Go to Top of Page

PatLuja
Tomato Guru

Belgium
416 Posts

Posted - Mar 26 2004 :  02:37:01 AM  Show Profile
Hello,

I do like the idea. I have a few practical questions/remarks.

Should this function only work for automatically inserted "()" after autocompletion, or should this also work when I type a '(' after a variable with an overloaded operator() (without any arguments), and the ')' is inserted automatically by VA?
Are there other situations I forgot where this would apply?

And what about a function with two signatures (one without arguments and the other with arguments)? Or what about a function with one argument with a default-setting? I would say in those cases the cursor should be placed between '(' and ')'.

Finally I would say this would be a great option. Maybe some programmers do not like it, because the cursor can be inside the "()" and sometime after them. For some people this might be irritating not always having the cursor in between (irritating because they would have to think about it ). So being able to enable or disable this option would be even more great.

They are just some thoughts to think this over. As said, I do like the idea.

Have a nice weekend.

With kind regards,
Patrick Luja
Go to Top of Page

Cezariusz
Tomato Guru

Poland
244 Posts

Posted - Mar 26 2004 :  05:34:32 AM  Show Profile
It's not a new idea and actually it used to work this way in an old version of VA. There was even a disscussion on this subject.
My two cents to the subject:

  • placing the cursor after the closing bracket only when the function has no parameters and no overloads is useful (have you noticed that VA X does it since build 1220 at least?)

  • skip the closing bracket when user type a semicolon and the function has an overload without required parameters

Cezariusz Marek
https://midicat.net/

Edited by - Cezariusz on Mar 26 2004 05:35:53 AM
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000