Skip to content

Instantly share code, notes, and snippets.

@abatkin
Last active July 2, 2018 18:27
Show Gist options
  • Save abatkin/6985e9bb6e55bda29150ecff3e46e91a to your computer and use it in GitHub Desktop.
Save abatkin/6985e9bb6e55bda29150ecff3e46e91a to your computer and use it in GitHub Desktop.
IntelliJ IDEA Customizations

IntelliJ IDEA Customizations

This file describes the customizations that I have made to my IntelliJ installation:

  • Editor -> File and Code Templates -> Includes -> File Header: Empty
  • Editor -> General -> Uncheck "Honor "CamelHumps" words settings when selecting on double click
  • Editor -> General -> Smart Keys -> Check "Use "CamelHumps" words"

Templates

Editor -> Live Templates

  • Group: other
  • Abbreviation: logger
  • Description: SLF4J Logger
  • Options: Shorten FQ Names
  • Context: Java / Declaration
  • Variables
  • CLASS_NAME = className() (No Default, Skip if defined)
    private static final org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger($CLASS_NAME$.class);
  • Group: surround
  • Abbreviation: T
  • Description: Surround with try-with-resource
  • Options: Reformat according to style, Shorten FQ names
  • Context: Java / Statement
  • Variables
  • ELEMENT_TYPE: rightSideType() (Default "java.lang.Object", Skip if defined)
  • VAR: suggestVariableName()
    try ($ELEMENT_TYPE$ $VAR$ = $SELECTION$) {
      $END$
    }

Plugins

Note that this list is not always complete, as I may have other plugins installed depending on what I have been working on lately (like Cursive, AngularJS, Android Support, etc...) - this list is meant to cover the non-standard plugins that I want to remember, that I otherwise won't.

  • .ignore
  • GitToolBox
  • Maven Helper
  • Open in terminal
  • Statistic
  • String Manipulation
  • YAML/Ansible support
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment