How to stop Eclipse from trying to run XML files?

前端 未结 5 676
灰色年华
灰色年华 2020-12-08 09:07

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

5条回答
  •  佛祖请我去吃肉
    2020-12-08 09:46

    As an alternative to @JesperE's solution, you can filter out the XSL run configuration by Run/Debug -> Launching -> Launch Configurations -> Filter checked launch configuration types (on right pane) and then check the XSL checkbox.

    When you apply and close the preferences window, open "Run Configurations" and you will notice the annoying XSL launch config is no longer there. This way, you can still have the ability to launch the selected executable class, but not if it is an XML file.

提交回复
热议问题