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
 cannot set different colors forLocal and Global va
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

yanyongcheng
Starting Member

China
1 Posts

Posted - Oct 01 2021 :  09:11:48 AM  Show Profile  Reply with Quote
When I "Enable Enhanced Syntax Coloring", cannot set different colors for Local and Global value, and I find in C/C++, the VA cannot distinguish local variables from global variables.(When I enalbe "Show local symbols in bold", the local and global values are all bold.)

VS:2015
VA:2406

feline
Whole Tomato Software

United Kingdom
18746 Posts

Posted - Oct 01 2021 :  11:21:24 AM  Show Profile  Reply with Quote
Can you please try the following simple C++ test. This code goes into the header file:

class simpleTestClass
{
private:
	int m_nSimpleHeight;
	int m_nSimpleWidth;

public:
	simpleTestClass()	{ }
	simpleTestClass(int nSimpleHeight, int nSimpleWidth);
};

and this code goes into the matching cpp file:

simpleTestClass::simpleTestClass(int nSimpleHeight, int nSimpleWidth)
{
	m_nSimpleHeight = nSimpleHeight;
	m_nSimpleWidth = nSimpleWidth;
}

in the cpp file the class member variables are NOT shown in bold, while the constructor parameters ARE shown in bold, both where they are passed in and again where they are used.

Do you see the same results on your system, or are you getting a different result?

zen is the art of being at one with the two'ness
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