简体   繁体   中英

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM