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
 Visual Assist vs. #defines in CUDA properties
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

rapaz
New Member

8 Posts

Posted - Dec 22 2011 :  05:20:58 AM  Show Profile  Reply with Quote
Hi all,

I started using Visual Assist X in my CUDA project and it helps navigating code a lot! Makes a huge difference. The only problem that i've had so far is the following. In my CUDA Runtime API project properties i have a define set that determines whether some bits of code should be compiled or not. The VA doesn't see this define and grays out those sections. I would be totally fine with VA not handling any code coloring for the defines but cannot find how. Tried messing with the newly created cu.tpl file, no effect.

Any ideas?

Thanks,

Vlad

feline
Whole Tomato Software

United Kingdom
19024 Posts

Posted - Dec 22 2011 :  11:32:17 AM  Show Profile  Reply with Quote
VA does not grey out these code blocks, this is something the IDE is doing. Try turning off:

IDE tools menu -> Options -> Text Editor -> C/C++ -> Formatting -> Colorize inactive code blocks in a different color

this should fix the problem for you.

VA is designed to be active even inside "inactive" code like this, to help you when you are working inside these blocks.

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

rapaz
New Member

8 Posts

Posted - Mar 22 2012 :  05:43:07 AM  Show Profile  Reply with Quote
Thanks! Indeed you are right and I got it working

quote:
Originally posted by feline

VA does not grey out these code blocks, this is something the IDE is doing. Try turning off:

IDE tools menu -> Options -> Text Editor -> C/C++ -> Formatting -> Colorize inactive code blocks in a different color

this should fix the problem for you.

VA is designed to be active even inside "inactive" code like this, to help you when you are working inside these blocks.

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