Skip to content

Create a template for Multiline string in Eclipse

benelog edited this page Jan 29, 2013 · 4 revisions

You can use multiline-string with shorter key strokes by following template.

  1. Go to 'Windows > Preference > Java > Editor > Templates' menu.

  2. Click 'New' button.

  3. Fill forms

    • Name : ms (or what ever you want)

    • Pattern

        ${:import('org.adrianwalker.multilinestring.Multiline')}
        /**
        
        */
        @Multiline  String ${varName}${cursor};
      

You can use the template on Java Editor by typing 'ms' and 'Ctrl+Space',

Clone this wiki locally