如何在 Eclipse 中打开 .launch 文件
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/5159550/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to open a .launch file in Eclipse
提问by Arthur Ulfeldt
I have a deploy.launch
file that I checked out with a project that does not include the Eclipse project in source control, it only includes the .launch
files.
我有一个deploy.launch
文件,我用一个项目检出该文件,该项目在源代码管理中不包含 Eclipse 项目,它只包含这些.launch
文件。
How can I add the existing .launch
files to my Eclipse project without having to click "new external tools configuration" and then cut and paste the fields from the .launch
file into the wizard to effectivly recreate the .launch
file? I would much rather just, well, launch it.
如何将现有.launch
文件添加到我的 Eclipse 项目中,而不必单击“新的外部工具配置”,然后将.launch
文件中的字段剪切并粘贴到向导中以有效地重新创建.launch
文件?我宁愿只是,好吧,启动它。
回答by Timmos
File > Import... > Run/Debug > Launch Configurations
文件 > 导入... > 运行/调试 > 启动配置
回答by skaffman
Just right click on the .launch
file, select "Run As", and it's right there.
只需右键单击该.launch
文件,选择“运行方式”,它就在那里。
.launch
files seem to get incorporated into the "External Tools" menu just by virtue of being present, although sometimes it decides it just won't bother.
.launch
文件似乎只是因为存在而被合并到“外部工具”菜单中,尽管有时它决定它不会打扰。
回答by Isaac Truett
You should be able to right-click > Run As
on the .launch file.
您应该能够right-click > Run As
在 .launch 文件上。
回答by 8084635
How about:
怎么样:
Run-Icon-dropdown -> Organize Favorites -> Add
运行图标下拉菜单 -> 整理收藏夹 -> 添加
..opens a list with all .launch files associated with your project. after adding, the files are available in the Run and Debug dropdowns.
..打开一个列表,其中包含与您的项目关联的所有 .launch 文件。添加后,文件在“运行”和“调试”下拉列表中可用。