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
 Refactoring Windows names to C# names
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Uniwares
Tomato Guru

Portugal
2320 Posts

Posted - Nov 28 2008 :  2:38:45 PM  Show Profile  Reply with Quote
public enum SC_START_TYPE : int 
{
	SERVICE_BOOT_START            = 0x00000000,
	SERVICE_SYSTEM_START          = 0x00000001,
	SERVICE_AUTO_START            = 0x00000002,
	SERVICE_DEMAND_START          = 0x00000003,
	SERVICE_DISABLED              = 0x00000004
}


Would be nice to be able to refactor this automatically so it matches C# standard naming scheme. Makes it easier to convert C++ legacy code to C#/.Net

1) remove underscores, uppercase first letter after underscore
2) lowercase the rest

feline
Whole Tomato Software

United Kingdom
18751 Posts

Posted - Nov 28 2008 :  4:31:21 PM  Show Profile  Reply with Quote
In terms of adding this to VA, this is a bit to close to code formatting for my tastes. How long before people want words converted into some other custom format?

Having said that, it is an interesting thing to try and do with an IDE macro, so I had a go. Have a look here:

http://support.wholetomato.com?W443

Use CTRL-W to select the word, trigger the macro, and be happy

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

Uniwares
Tomato Guru

Portugal
2320 Posts

Posted - Nov 28 2008 :  9:06:09 PM  Show Profile  Reply with Quote
That is as good as it gets. Thanks a lot. I was thinking about it, but my knowledge of VB and macros is as good as my willing to use it. After Microsoft's Professional Basic Workbench (was that 1990? something like that) I really didn't care much any more about Basic and what came after.
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