These are called "editor templates" and you can see the full list in
Window --> Preferences --> Java --> Editor --> Templates
You can also create your own, with various placeholders, for example. I have one isequalto
defined as follows:
${:importStatic(org.fest.assertions.api.Assertions.assertThat)}assertThat(${actual}).isEqualTo(${expected});
This will automatically add static imports and add cursor positions that can be navigated using TAB. This can be called by typing isequalto
(or just ise
) and ctrl + SPACE.
For try / catch bock, just type try
and ctrl + SPACE.
source share