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
 Drag-n-drop refactoring enhancement
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Uniwares
Tomato Guru

Portugal
2322 Posts

Posted - Aug 07 2008 :  3:43:02 PM  Show Profile  Reply with Quote
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...

feline
Whole Tomato Software

United Kingdom
19022 Posts

Posted - Aug 09 2008 :  10:43:05 AM  Show Profile  Reply with Quote
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

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

Uniwares
Tomato Guru

Portugal
2322 Posts

Posted - Aug 09 2008 :  6:37:39 PM  Show Profile  Reply with Quote
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.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19022 Posts

Posted - Aug 11 2008 :  09:45:44 AM  Show Profile  Reply with Quote
An interesting point. I am not sure how well that would work for C++ and VB, but it should work well for C#

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