简体   繁体   English

是否可以在Visual Studio中识别.tcc文件?

[英]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++ 最近,我偶然发现了.tcc文件格式,据我了解,这是一种在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. 但是,Visual Studio似乎无法识别这种格式,因为它没有执行任何“漂亮的打印”,即说将关键字设置为蓝色,键入淡蓝色等。

Is there a way to make visual studio recognize this format and also make intellisense available for it? 有没有一种方法可以使Visual Studio识别这种格式并使其具备智能感知功能?

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 . 在“ 扩展名”文本框中输入“ tcc ”,然后从“编辑器”列表中选择“ Microsoft Visual Studio 2012 ”,单击“ 应用” ,然后单击“ 确定”


Edit: In reply to your comment, see this piece of documentation from MSDN in regard to setting Editor options. 编辑:为了回复您的评论,请参阅MSDN上有关设置编辑器选项的文档

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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