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
 Separate "Insert () and Closing } ) ] and " "
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

MrJones4u
Ketchup Master

83 Posts

Posted - May 30 2005 :  05:46:46 AM  Show Profile

As much as I G?enjoyG? the option of inserting the matching ), ] and G? when comes to the } I find that it often gets in may way as I have got a lot of G?oldG? code that I generally only have to enhance with a if, for or a while. And so I end up with doing this:


1) the old code

	doSomething();
	doSomethingMore();

2) Adding the new if

	if(why?)
	{
	}
	doSomething();
	doSomethingMore();

3) Draging and Indenting the stuff back into place

	if(why?)
	{
	   doSomething();
	   doSomethingMore();
	}


Which all in all is not that bad G?? only very interruptive to the workflow.

And as I find that I like to set my } by myself anyway as part of the flow of typing I personally would not miss the auto }.


So my simple wish and suggestion would be to have separate enable options for ), ], G? and }G?


cu and keep the good work up!

WannabeeDeveloper
Tomato Guru

Germany
775 Posts

Posted - May 30 2005 :  05:54:42 AM  Show Profile
You could write an autotext-entry like this:

Surround Selection with if(){}:
if(-?)
{
    %0
}


%0 is replaced by the selected text and -? is the Caret-Pos after inserting autotext.

See Autotext and Code-Templates for additional Infos...

Go to Top of Page

MrJones4u
Ketchup Master

83 Posts

Posted - May 30 2005 :  08:17:06 AM  Show Profile
Thanks - that would work and should do the trick for the moment.

Yet, I still would like to see the option of enabling the auto ), ], G? and } separately. The case that I chose above was just the most graphical of cases...

cu
Michael
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19014 Posts

Posted - May 31 2005 :  2:19:37 PM  Show Profile
VA tries to keep to the absolute minimum number of options. one reason for this is that each option produces a lot of pathways through the code, since VA has to support several different IDE's, each of which work differently.

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

jpizzi
Tomato Guru

USA
642 Posts

Posted - Jun 01 2005 :  12:13:31 AM  Show Profile
Another alternative is to add the {} first, using the "Surround selection on / * ( { and #," then add the if(why?).

Joe Pizzi
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