如何在 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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-10 20:00:02  来源:igfitidea点击:

How to open a .launch file in Eclipse

eclipse

提问by Arthur Ulfeldt

I have a deploy.launchfile that I checked out with a project that does not include the Eclipse project in source control, it only includes the .launchfiles.

我有一个deploy.launch文件,我用一个项目检出该文件,该项目在源代码管理中不包含 Eclipse 项目,它只包含这些.launch文件。

How can I add the existing .launchfiles to my Eclipse project without having to click "new external tools configuration" and then cut and paste the fields from the .launchfile into the wizard to effectivly recreate the .launchfile? 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 .launchfile, select "Run As", and it's right there.

只需右键单击该.launch文件,选择“运行方式”,它就在那里。

.launchfiles 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 Ason 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 文件。添加后,文件在“运行”和“调试”下拉列表中可用。