Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

eclipse no autoinsertion for EPIC (Perl Plugin)

I want to use Eclipse to do my Perl programming. For this purpose I have installed the EPIC-Plugin.

But how do I get the EPIC plugin to automatically insert the templates? Or the shebang? This is possible with Java-Class files out-of-the-box. Why not with EPIC? The templates that I talk about are the one under: 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")

EPIC Repo: http://e-p-i-c.sourceforge.net/updates/testing

like image 847
maxmillrose Avatar asked Jun 08 '13 17:06

maxmillrose


1 Answers

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.

So if you need a template to auto insert a shebang for example, have a template with these fields:

  • Name: #!
  • Context: Perl
  • Description: Any fancy Description
  • Pattern: ${cursor}#!/usr/bin/env perl

After you enabled and applied, you should be able to auto insert the shebang when you type #! then ctrl+space.

Also, you can import templates externally, there are tons online with all the basics covered. :)

Hope this helps.

like image 69
Bethuel Rein Vendiola Avatar answered Oct 14 '22 04:10

Bethuel Rein Vendiola