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
 Auto complete function applied to 1 thing
 New Topic  Reply to Topic
 Printer Friendly
Author  Topic Next Topic  

tjcbs
Ketchup Master

93 Posts

Posted - May 19 2017 :  5:08:30 PM  Show Profile  Reply with Quote
Suppose I have a variable or symbol, SomeVarOrSymbol
Suppose I want to replace an occurance of SomeVarOrSymbol with a transformation of it, via a function: Transform(var).

So, I start typing (| == the cursor):
Tra|SomeVarOrSymbol

Auto Complete pops up, and I select Transform.

Default behavior, since "TraSomeVarOrSymbol" is not a symbol:
Transform|

If I change the registry setting HKCU\Software\Whole Tomato\Visual Assist X\<IDE spec>\CompletionOverwriteBehavior to 1:
Transform|SomeVarOrSymbol

What I want:
Transform(SomeVarOrSymbol)|

Wasting years of my life, making a stupid game: http://www.indiedb.com/games/plannet

feline
Whole Tomato Software

United Kingdom
14655 Posts

Posted - May 20 2017 :  10:40:42 AM  Show Profile  Reply with Quote
The problem here is that we don't know where the closing bracket should go, so we cannot just insert it automatically. When you are typing at the end of the line, inserting the closing bracket is reasonable, since then you can adjust it as required.

Here, if you use Shift + End to select "SomeVarOrSymbol" and then press ( the selected text will be surrounded in round brackets, giving you the result you are looking for.

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

tjcbs
Ketchup Master

93 Posts

Posted - May 24 2017 :  2:08:08 PM  Show Profile  Reply with Quote
Then, at the very least, you can insert the opening bracket, and move the cursor to the end of the next symbol. You're solution won't work because I may be working with something in the middle of a line.

Wasting years of my life, making a stupid game: http://www.indiedb.com/games/plannet
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
14655 Posts

Posted - May 24 2017 :  2:44:42 PM  Show Profile  Reply with Quote
If we move the cursor to the end of the line, how long before someone says they are typing:

Transform(!SomeVarOrSymbol)

making assumptions about what comes next is something we try to avoid doing to often, since it is easy to get tripped up by them.

zen is the art of being at one with the two'ness
Go to Top of Page
   Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2017 Whole Tomato Software, Inc Go To Top Of Page
Snitz Forums 2000