Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Compatibility with Code Compare

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
CliffyP Posted - Jul 07 2020 : 12:32:22 PM
When using the Code Compare plugin with vis studio to do differences/merging, only the "result" file has the correct syntax coloring by VA.

I know Code Compare is not related to VA, however we are talking about the display of code that VA should be able to colorize properly and it looks like the only reason its not is that the file name is non-standard.

So for example when using tortoise svn the file names for a merge (3 way panel) are something like:

.cpp.merge-right.r424
.cpp.working

VS does not allow such non-standard file extensions to be associated to c++ in the options. Any solution to this?
3   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Jul 09 2020 : 06:48:36 AM
What settings have you added? Did you make sure you closed the IDE before editing the registry?

Testing this here, using VS2017 and VA 2382.0, I have done the following. I closed VS2017, then set the registry key:

HKEY_CURRENT_USER\SOFTWARE\Whole Tomato\Visual Assist X\VANet15\ExtSource = ".c;.cpp;.cc;.cxx;.tli;.working;"

and in the IDE options dialog, I have added the extension "working" to the C++ extensions list.

After an IDE restart and VA symbol database rebuild VA is active in the .cpp.working test file I have here, and syntax colouring is being applied as normal.

You do need to close the IDE before editing the VA registry settings, because VA saves out its settings on exit, so can overwrite any edits you have made.

The same should work just fine for the .r424 extension, but this is why I asked how variable or fixed this extension is.

I haven't yet tested with the Code Compare plugin, just testing directly, so that might change things.
CliffyP Posted - Jul 08 2020 : 12:45:56 PM
yah as I said Visual Studio deems types like cpp.working as invalid and it does not let me add them.
feline Posted - Jul 08 2020 : 06:51:41 AM
How "reliable" are these extensions? This page explains how to enable VA for C++ with non standard file extensions:

https://support.wholetomato.com/default.asp?W328

but if the "right.r424" extension changes the number a lot this won't be that helpful. But it should work for the ".working" extension.

© 2019 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000