Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 Drag-n-drop refactoring enhancement

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
Uniwares Posted - Aug 07 2008 : 3:43:02 PM
One thing that I really like about the way MS Word enhances Drag-n-drop is that it adjustes the whitespace around the dragged section. This would be quite useful in the IDE too, if I select one or more complete words, they should be space and coma adjusted.
Means: remove remaining spaces/comas where it comes from, and insert leading/trailing spaces/comas where its dropped.

Example (red represents selected text):

reordering function parameters, by double-click-selecting the middle parameter:
void FuncX(String param1, String param2, String param3);

after dropping:
void FuncX(String param2String param1, , String param3);


Shouldnt be too hard to make VAX take a shot at this...
3   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Aug 11 2008 : 09:45:44 AM
An interesting point. I am not sure how well that would work for C++ and VB, but it should work well for C#
Uniwares Posted - Aug 09 2008 : 6:37:39 PM
Seriously I would not worry about the formatting, just call the IDE's format source, like in a block paste and it will do the rest.
feline Posted - Aug 09 2008 : 10:43:05 AM
I like this, it is a "simple" idea, which if done well would be very nice

My main concern here is actually the formatting of the final line. Are there spaces next to the brackets, how many spaces after the comma's, etc. People get quite passionate about their code formatting. If VA was able to remember the line before, and use that to guide the formatting to use this should solve the problem. This is rather a big IF, but it sounds good in theory

I have put in a feature request to see what our developers make of this idea:

case=19021

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