Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Visual Assist
 Feature Requests
 some suggestion about Visual Assist X
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

meteorfall
New Member

4 Posts

Posted - Oct 12 2005 :  02:20:50 AM  Show Profile  Visit meteorfall's Homepage
some suggestion:
1.In the setting Option,the function "Enhance Syntax Coloring" can not set the custom coler for the property of the variables.It must be better if the software can specify the variables and its property,bying using different colors.
2.If the class variable's name is the same as its class,I think it can not distinguish the variable and the class.

Thank you.

feline
Whole Tomato Software

United Kingdom
13784 Posts

Posted - Oct 12 2005 :  2:24:49 PM  Show Profile
1. i do not understand what you mean. is this something to do with accessors in C#?

2. when the same name is used for more than one thing VA does its best. the problem is that the colouring code has to run very quickly, so that it can keep up with the user scrolling through the code, so it is not able to do a lot of complex lookup's.

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

meteorfall
New Member

4 Posts

Posted - Oct 13 2005 :  01:15:09 AM  Show Profile  Visit meteorfall's Homepage
Thanks for your reply.
I do want to use it in c# .
I think it may be better to run in c++ then c#.
I also found that the coloring code function always take mistakes when coloring. For example,the same code flagment in two place may colored by different colors.It seems the coloring code has not perfect stability.

e.g:
theNew.GetDAO().Insert() ;

but anthor place :
theNew.GetDAO().Insert();

the pink suit the method code,it's right,but the maroon should be the class,structure code,as my setting.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
13784 Posts

Posted - Oct 13 2005 :  2:58:01 PM  Show Profile
your original point 1, given this snippet of C#

public SortOrder Order
{
    set { OrderOfSort = value; }
    get { return OrderOfSort; }
}


do you mean you want to see all instances of the word "Order" in a custom colour? if so this might be tricky, but i can ask support about this. however i am not sure how this idea would apply to C++. i am aware of a Microsoft specific method of doing this in C++, but i don't know how widely it is used.


the colouring of:

theNew.GetDAO().Insert();

does indeed look like a bug. how easy is this to reproduce? can you produce a small piece of code that i can paste into the IDE and reproduce this?

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

meteorfall
New Member

4 Posts

Posted - Oct 13 2005 :  11:53:38 PM  Show Profile  Visit meteorfall's Homepage
To the one: yes,I wanna such effect.My friend use ReSharp can do it,but ReSharp are too slow.

the second: the code flagment :
public bool JTZJ(ref string errmsg)
{
CWT_JTZJ last = (CWT_JTZJ)this.BusinessEntity;

Hashtable hashtable=new Hashtable();
hashtable.Add("userName",last.CurrentUser);
hashtable.Add("theState",null);
IBatisNet.DataMapper.Mapper.Instance().QueryForList("JTZJ",hashtable);

if((bool)(hashtable["theState"])!=false)
{
return true;
}
return false;

}

(ps:in my IDE,"hashtable.add()" are not the same color.)
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
13784 Posts

Posted - Oct 14 2005 :  2:13:46 PM  Show Profile
i will ask support about extra colouring for C# and see what they say. VA's colouring code has very little information about context, which helps to keep it fast, but does mean it cannot always do everything people would like it to.

pasting the code snippet into a C# console app, using VS 2003 with VA 1426 i am seeing this:



i presume this is different to you.

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