简体   繁体   English

在整个项目上运行Eclipse编辑器操作

[英]Run eclipse editor action on entire project

Question: 题:

Is there a way to run an eclipse action that is available from the context menu in the editor on every file of an project. 有没有一种方法可以在项目的每个文件上运行可从编辑器的上下文菜单中使用的Eclipse动作。

Actual Case: 实际情况:

I have to work with the leon3 and my dull mind has trouble enough understanding the code, that I do not want to scan lines to see if there is a semicolon hidden in there to see if there are multiple instructions or if the end if happens to be behind another instruction rather than on a line of its own (I missed an end if, which caused me to think that statements were conditional,...), therefore I would like to format the source nicely. 我必须与leon3一起工作,我的愚蠢头脑无法充分理解代码,因此我不想扫描行以查看其中是否隐藏了分号以查看是否存在多条指令,或者如果end if发生错误,在另一条指令的后面而不是一条指令的后面(如果我错过了结尾,这使我认为语句是有条件的,...),因此我想很好地格式化源。 I have access to Sigasi PRO which offers the option to "beautify" code as an operation in the editor. 我可以访问Sigasi PRO ,它提供了在编辑器中通过操作“美化”代码的选项。 I would like to run this operation on all files in the leon project automatically. 我想对leon项目中的所有文件自动运行此操作。


在此处输入图片说明

Sigasi indeed only offers formatting in the editor at this time. Sigasi实际上目前仅在编辑器中提供格式化。 In the Sigasi editor, you can format a selection or the entire editor's content. 在Sigasi编辑器中,您可以格式化选择内容或整个编辑器的内容。 But, you can not trigger the formatting action without an editor. 但是,没有编辑器就无法触发格式化操作。

I have not tried this, but I think you can achieve this with the Eclipse EASE project . 我没有尝试过,但是我认为您可以使用Eclipse EASE项目来实现。 EASE is a scripting environment for Eclipse. EASE是Eclipse的脚本环境。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM