如何从尝试运行XML文件停止的Eclipse?文件、XML、Eclipse

2023-09-12 07:27:47 作者:我不討囍

我主要是使用Eclipse的Andr​​oid开发这些天,并已制定良好的肌肉记忆按Ctrl-F11来运行我的应用程序。问题是,如果我碰巧编辑XML文件(如清单或布局),当我打的组合键,Eclipse的做一些事情,我觉得高深莫测......它试图将跑我的XML文件,创建一个错误的输出文件(称为像 layout.out.xml ),我则有删除,增加了无用的XML启动配置,以我的历史,一般是在我的屁股疼。

I'm mostly using Eclipse for Android development these days, and have developed good muscle memory for Ctrl-F11 to run my app. Problem is, if I happen to be editing an XML file (like manifest or layout) when I hit that key combination, Eclipse does something that I find inscrutable... It attempts to "run" my XML file, creating an erroneous output file (called something like layout.out.xml) that I then have to delete, adding a useless XML launch configuration to my history, and generally being a pain in my butt.

这没什么大不了的,但它是一个持续的烦恼。有谁知道如何禁用跑为XML在Eclipse?我试图找到一个配置项的,但Eclipse的选项是,我没有任何运气有我这样一个兔子洞。

It's no big deal, but it is an ongoing annoyance. Does anyone know how to disable "run" for XML in Eclipse? I've tried to find a config item for it, but Eclipse's options are such a rabbit hole that I haven't had any luck there myself.

谢谢!

推荐答案

您可以告诉Eclipse推出,而不是试图创建为当前文档/选择启动配置您的最新推出的配置。在preferences - >运行/调试 - >下水,你可以选择总是启动previously启动的应用程序

You can tell Eclipse to launch your latest launch configuration, instead of attempting to create a launch configuration for the current document/selection. Under Preferences -> Run/Debug -> Launching, you can select "Always launch the previously launched application".

编辑:你可能有一个插件,它定义了一个启动快捷键,触发对XML的文件。这听起来像一个pretty的愚蠢的事情。

You probably have a plugin which defines a launch shortcut which triggers on XML-files. This sounds like a pretty dumb thing to do.