[英]eclipse no autoinsertion for EPIC (Perl Plugin)
I want to use Eclipse to do my Perl programming. 我想使用Eclipse进行Perl编程。 For this purpose I have installed the EPIC-Plugin.
为此,我已经安装了EPIC-Plugin。
But how do I get the EPIC plugin to automatically insert the templates? 但是,如何获得EPIC插件来自动插入模板? Or the shebang?
还是shebang? This is possible with Java-Class files out-of-the-box.
现成的Java类文件可以做到这一点。 Why not with EPIC?
为什么不使用EPIC? The templates that I talk about are the one under: Window -> Preferences Perl EPIC -> Editor -> Templates
我要谈论的模板是以下模板:Window-> Preferences Perl EPIC-> Editor-> Templates
They don't seem to work at all. 他们似乎根本不工作。 For Java the work just fine (almost same location - just replace "Perl Epic" with "Java")
对于Java,工作正常(几乎在同一位置-只需将“ Perl Epic”替换为“ Java”)
EPIC Repo: http://epic.sourceforge.net/updates/testing EPIC回购: http : //epic.sourceforge.net/updates/testing
You should type the name of the template in the editor first - then hit ctrl+space, it should show you a list of all templates starting with that name. 您应该首先在编辑器中键入模板的名称-然后按ctrl + space,它将显示以该名称开头的所有模板的列表。
So if you need a template to auto insert a shebang for example, have a template with these fields: 因此,例如,如果您需要模板来自动插入shebang,请使用包含以下字段的模板:
After you enabled and applied, you should be able to auto insert the shebang when you type #! 启用并应用后,您应该能够在键入#时自动插入shebang! then ctrl+space.
然后按Ctrl +空格键。
Also, you can import templates externally, there are tons online with all the basics covered. 另外,您可以从外部导入模板,在线提供了涵盖所有基本知识的大量信息。 :)
:)
Hope this helps. 希望这可以帮助。
I have been using Eclipse - EPIC - Perl for a couple of years now. 我已经使用Eclipse-EPIC-Perl几年了。 (On Windows XP SP3 and on Windows 7).
(在Windows XP SP3和Windows 7上)。 I find it an excellent tool (much better than PADRE) which I had initially tried out.
我发现它是我最初尝试过的出色工具(比PADRE更好)。 Its management of variable monitoring is superb.
它对变量监视的管理非常出色。
Once in while I encounter a little bug, but usually those are quite workable. 偶尔我会遇到一个小错误,但通常这些错误都是可行的。 I'm simply not using the templates (on Windows you don't need the shebang anyway).
我只是不使用模板(在Windows中,无论如何都不需要shebang)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.