本文介绍了视觉工作室intellisense标题没有.h的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用的标题不含.h的库
这违反了视觉工作室的intellisense(声明/定义查找)
I am using a library that has headers without the .h
This defeats visual studio's intellisense (declaration/definition lookup)
知道如何告诉VS2008文件是头?
Anyone know how to tell VS2008 that a file is a header?
推荐答案
转到Tools :: Options :: Text Editor :: File在Visual Studio中的扩展选项卡。选中映射无扩展标头复选框,然后从组合框中选择所需的语言。
Go to Tools::Options::Text Editor::File Extension tab in Visual Studio. Check the "Map extensionless headers" checkbox, and select the language you want from the combobox.
这篇关于视觉工作室intellisense标题没有.h的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!