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
 Create Method refactoring
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Staffan
Junior Member

Sweden
13 Posts

Posted - Sep 08 2006 :  06:49:20 AM  Show Profile  Reply with Quote
Suggestion:

Add a "create method" refactoring like the on in the C# editor. Very nice when writing code, especially when you have a keyboard shortcut.

Regards

/Staffan

rhummer
Tomato Guru

USA
527 Posts

Posted - Sep 08 2006 :  10:41:46 AM  Show Profile  Reply with Quote
I'm not sure what you mean, could you post an example if what you mean?

Tools Engineer - Raven Software
VS2005 SP2/VS2008 SP1 - VAX <LATEST> - Win 7 x64

Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Sep 09 2006 :  09:45:55 AM  Show Profile  Reply with Quote
do you have a plugin installed to extend the C# refactoring facilities? using VS2005 my C# refactoring menu looks like this:



and i am not seeing anything called "create method".

VA already offers:

* Add Similar Member to <class name>
* Create Declaration
* Create Implementation
* Encapsulate Field
* Extract Method

all of which "create" C++ functions (and most work in C#), depending on exactly what you are trying to do. plus they are all available via the VAssistX -> Refactor menu, which can be accessed via the keyboard, plus you can bind keyboard shortcuts to these commands via the IDE's keyboard options.

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

Staffan
Junior Member

Sweden
13 Posts

Posted - Sep 09 2006 :  6:14:11 PM  Show Profile  Reply with Quote
No plugin, just vanilla VS2005.

Try this:

in a new C# project, type in the main function

int i = 0;
string greeting = "Hello, World!";
int j = SomeMethod(greeting, i);<Ctrl+.>

A dropdown with "Generate method stub for SomeMethod in <your namespace>" appears.
Press enter and watch in awe as the following is generated:


private static int SomeMethod(string greeting, int i) {
    throw new Exception("The method or operation is not implemented.");
}


The C# editor deduces the return value, the method name and the parameter types and names and generates a method stub.

It is an extremely addictive feature, and it makes you feel that your being amazingly well taken care of by the editor.

It enables coding top-down. You just write what you wanna do on a high level, and later on, you go down to flesh out the implementation of the generated functions.

I urge you to play with it for a while and consider if it would be possible to implement in VA.

I love the work you guys do. I just cant seem to get enough of it :)

Regards,

/Staffan

Go to Top of Page

jpizzi
Tomato Guru

USA
642 Posts

Posted - Sep 10 2006 :  4:08:00 PM  Show Profile  Reply with Quote
Having seen what you are requesting, I like this idea. Let's see what the developers think.

case=2451

Joe Pizzi
Go to Top of Page

AdyR
Ketchup Master

United Kingdom
75 Posts

Posted - Sep 15 2006 :  07:59:18 AM  Show Profile  Reply with Quote
Add my vote, as I believe this is what was being suggested in the topic http://forum.wholetomato.com/forum/topic.asp?TOPIC_ID=4888

Ady
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