在VS中打开预先存在的文件。如何告诉VS使用C ++? [英] Opening pre-existing file within VS. How to tell VS to use C++?

查看:177
本文介绍了在VS中打开预先存在的文件。如何告诉VS使用C ++?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在尝试编辑用C ++编写的VLC媒体播放器中的一些代码, 

I am trying to edit some code in VLC media player written in C++, 

当我在Visual Studio(VS)中打开它时,VS不会自动知道现有.lua文件的语言

When I open it in Visual Studio (VS), VS doesn't automatically know the language of the existing .lua files

我怎样才能获得VS为这些文件使用C ++环境?

How can I get VS to use a C++ environment for these files?

或者在打开文件后如何切换到C ++环境。

Or how do I switch to a C++ environment after I opened the files.

(我想我正在使用"环境"这个词,它是什么读取语言?)

(I think I am using the word "environment" right, it's what reads the language?)

谢谢!

JimmyTheCool 8)

JimmyTheCool 8)

推荐答案

创建完成后 项目,您使用文件 - >打开文件或Ctrl + O在VC ++编辑器中打开文件。

After you have created you  project, you use File->Open File or Ctrl+O to open the file in the VC++ editor.

如果您想更改代码然后重新编译,它可能会更简单将文件复制到您在项目中创建的cpp文件。 然后你可以正常编辑它。

If you want to alter the code and then recompile, it would probably be simpler to copy the file to a cpp file you create in the project.  Then you can edit it normally.


这篇关于在VS中打开预先存在的文件。如何告诉VS使用C ++?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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