This is the method that I found to speedup the logging.

1. Go to Windows > Preferences

0

2. Go to Java > Editor > Templates in there and create a new template or select the Existing one to edit

1

3. Sample command

logger.info(“${enclosing_mathod}().${word_selection} : ” + ${word_selection}${});${cursor}

(Note : If you are copy paste this. Please replace the ” by typing double quotes. It will not added as double quotes.)

2

4. It’s Show-Time!!!

  • Type the variable you want to log
  • Select it.
  • Press Ctrl + Space
  • Type shortcut name you added or edited (eg: li) to select it from the drop down suggestions.
  • Hit enter and see what happens.
Advertisements