Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 Create Method refactoring

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
Staffan Posted - Sep 08 2006 : 06:49:20 AM
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
5   L A T E S T    R E P L I E S    (Newest First)
AdyR Posted - Sep 15 2006 : 07:59:18 AM
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
jpizzi Posted - Sep 10 2006 : 4:08:00 PM
Having seen what you are requesting, I like this idea. Let's see what the developers think.

case=2451
Staffan Posted - Sep 09 2006 : 6:14:11 PM
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

feline Posted - Sep 09 2006 : 09:45:55 AM
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.
rhummer Posted - Sep 08 2006 : 10:41:46 AM
I'm not sure what you mean, could you post an example if what you mean?

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