Skip to content

Instantly share code, notes, and snippets.

@vpetruchok
Last active October 20, 2016 22:48
Show Gist options
  • Save vpetruchok/d613831669031e5e87c1 to your computer and use it in GitHub Desktop.
Save vpetruchok/d613831669031e5e87c1 to your computer and use it in GitHub Desktop.
Intellij Idea Live Templates

IntelliJ Idea Live Templates

  • main

    public static void main(String[] args){
        $END$
    }
  • printf

    System.out.printf("%s%n", $END$);
  • test-ng

    @org.testng.annotations.Test
    public void $NAME$() {
        $END$
    }
  • test-junit

    @org.junit.Test
    public void $EXPR$() {
        $END$
    }
  • logger

    private static final org.slf4j.Logger LOGGER = org.slf4j.LoggerFactory.getLogger($CLASS_NAME$.class);
    Options: enable Shorten FQ names
    
    Select Edit variables:
        Name: CLASS_NAME
        Expression: className()
        Skip if defined: enabled
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment