Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以设置 QtCreator 将 .d 文件视为 C 源?
在二进制可执行文件中嵌入了一个名为 CppEditor.mimetypes.xml 的文件作为资源。此文件包含被视为 C++ 源文件的文件扩展名列表。
它可以在这里的源代码树中找到:src/plugins/cpeditor/CppEditor.mimetypes.xml
我认为如果不从源代码重新编译 Qt Creator 就无法更改列表。
你确定这是 Qt Creator 的限制吗?不过,它可能在编译器中。