Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 Switch Equals

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
MiddleTommy Posted - Jan 21 2008 : 2:41:27 PM
Hey this would save me tons of time.

I hate having to type lists like
txtDate.Text = p.Date;
CheckBox1.ISChecked = p.IsFOB;
Textbox1.Text = p.part;
etc etc etc...

the longer the list the more terrible. But what is even worse is when you have to switch the list

Could you make a refactor that switches sides of the equal sign.
to easily make the above list into
p.Date = txtDate.Text;
p.IsFOB = CheckBox1.ISChecked;
p.part = Textbox1.Text;
1   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Jan 21 2008 : 5:05:41 PM
use the IDE's find and replace in regular expression mode. For VS2005 this works well:

Find {\\t+}{.*} = {.*};
Replace with \\1\\3 = \\2;

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