Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 Merge/Separate lines

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
Dusan Posted - Nov 13 2013 : 07:57:39 AM
It would be fine to have a way to merge and separate lines in a block.

For example C# 2.0 property:

public double Hours
{
  get 
  { 
    return seconds / 3600; 
  }
  set 
  { 
    seconds = value * 3600; 
  }
}


After merge will look like:

public double Hours { get { return seconds / 3600; } set { seconds = value * 3600; } }


and after separate it would look again:

public double Hours
{
  get 
  { 
    return seconds / 3600; 
  }
  set 
  { 
    seconds = value * 3600; 
  }
}


I know I can use regular expressions, but it is not as simple and not always applicable.
1   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Nov 25 2013 : 05:46:40 AM
Why don't you just wrap the code block in #region #endregion lines? Select the code and press # and if you are still using the default VA Snippet for this, the code will be wrapped in #region #endregion lines for you. You can then collapse and expand this block of code at will.

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