Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 749
Abris Avatar asked Nov 27 '12 14:11

Abris


People also ask

How do I see all files in Visual Studio?

The new experience is available by searching for “Find in Files” or “Replace in Files” in Visual Studio search (Ctrl+Q by default). You can also get to these commands with Ctrl+Shift+F and Ctrl+Shift+H respectively.

How do I search for a string in Visual Studio?

Ctrl + i - Incremental Search Most developers using Visual Studio are familiar with the “Find dialog” that you can launch by pressing the “Ctrl + F” key within the IDE.

How do I search for a filename in Visual Studio?

Ctrl + Shift + T.


1 Answers

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.

like image 147
dsgriffin Avatar answered Oct 08 '22 06:10

dsgriffin