IntelliJ IDEA 14.0.0 Web Help

Generating main() method. Example of Applying a Simple Live Template

As an example of applying a simple live template, let us create a main() method.

To create main() method

  1. Open the desired class for editing.
  2. Type the abbreviation of the main() method template:
    Screenshot
  3. Press the template invocation key. By default, it is Tab. The abbreviation expands to the main() method:
    Screenshot

See Also

Last modified: 4 December 2014
comments powered by Disqus