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
 Technical Support
 Idea: Hungarian Notation anyone?
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

John_H_Bergman
Tomato Guru

USA
198 Posts

Posted - Jan 21 2004 :  12:40:52 AM  Show Profile

Most of my clients insist that internal variables are prefixed by "m_"... no surprise there, additionally, most of them want the standard variable name prefixes (str for string, i for int, etc)... occassionally, they also insist on special prefixes like arrlst for 'ArrayList' objects, and some even want their own objects prefixed -- like pp for 'PushPop'.. (don't ask).

How about adding the ability to define a list of mappings for variable type to prefix type, and then when variables are added to a class, they could be prefixed.

The list could also be enhanced to support the other prefix (like m_ for member, or c_ for const, ro_ for readonly, s_ for static, etc).

I could see VA update the code after the variable is typed in, and followed by an '=' or a ';' character.

then I could type:

public static string Name=

and when I typed the '=', the line would be adjusted to

public static readonly string s_strName=

-- or --

private int Count=

to

private int m_iCount=

-- or --

private ArrayList Items;

to

private ArrayList m_arrlstItems;

I could see this used to some degree in any of the IDEs.

Thoughts?

John H. Bergman
CTO
SiliconZone


[email protected]

To Send email, remove the .online.

support
Whole Tomato Software

5566 Posts

Posted - Jan 21 2004 :  2:15:41 PM  Show Profile
You might try defining Autotext for some of your cases. For example, force a suggestion to appear when you type
string
which is
string s_str


http://www.wholetomato.com/x/products/features/autotext.html

Whole Tomato Software, Inc.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000