Abris
Abris

Reputation: 1481

Recognise .tcc files in Visual Studio?

I recently stumbled over the file format .tcc which from what I understand is a way to separate the interface from the implementation when writing template classes in c++

However, Visual Studio does not seem to recognize this format in the way that it does not do any "pretty printing", that will say making keywords blue, types light blue etc.

Is there a way to make visual studio recognize this format and also make intellisense available for it?

Upvotes: 6

Views: 2335

Answers (1)

dsgriffin
dsgriffin

Reputation: 68616

Follow these steps:

  1. From the Tools menu, click Options.

  2. Expand Text Editor nodes and select File Extension.

  3. Input “tcc” in the Extension textbox, and Select Microsoft Visual Studio 2012 from the Editor list, click Apply and then click Ok.


Edit: In reply to your comment, see this piece of documentation from MSDN in regard to setting Editor options.

Upvotes: 9

Related Questions