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.
如何设置以便所有 .pc 文件都将使用 Visual Studio 打开?它也将其识别为 C/C++ 代码。我之前在注册表中做过设置。不幸的是,我删除了这些文件,完全忘记了如何再次删除。
只需在 Windows 资源管理器中进入 .pc 文件并右键单击并“打开方式”,然后选择 Visual Studio 并选中该框以使其成为“默认”。
编辑:然后你在 Visual Studio 中进入工具菜单 -> 选项菜单,-> 文本编辑器,文件扩展名并将 .pc 分配给 C++ 。