添加C文件到Visual Studio [英] Add C file to Visual Studio

查看:162
本文介绍了添加C文件到Visual Studio的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Microsoft Visual Studio 2010。当我将文件添加到我的项目,他们有一个的.cpp 扩展。用C的工作,我必须手动将文件重命名为 .C

I'm using Microsoft Visual Studio 2010. When I add files to my project, they have a .cpp extension. To work with C, I have to manually rename the files to .c.

有没有办法直接添加C文件,而不是重命名什么?

Is there any way to directly add C files, without renaming anything?

推荐答案

如果我理解正确的话,你要直接在C文件添加到项目中。不幸的是,我不认为VS提供任何这样做的手段;你只需要重命名新添加的文件。

If I'm understanding correctly, you want to directly add a C file to the project. Unfortunately, I don't think VS provides any means to do so; you'll just have to rename newly added files.

您可以在IDE中重命名文件。右键单击该文件,重命名击(或点击该文件,并按下F2)。

You can rename a file from within the IDE. Right click the file and hit rename (or click on the file and push F2).

这篇关于添加C文件到Visual Studio的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆