Professional Documents
Culture Documents
Core Generate
Alt+⇧Shift+Z Surround with (do, for, if, try, ..) Alt+↑/↓ Move current line or selection up or down
Text Editing you set the breakpoints) with "right click → Add bookmark". Add the
Bookmarks-View (Window → Show View → Bookmarks).
Ctrl+⇧Shift+Y lowercase selected text
⇧Shift+Enter Adds a blank line below the current line Ctrl+⇧Shift+ Open Resource
R
Ctrl+⇧Shift+Ent Adds a blank line above the current line
Ctrl+O Show Outline (second press shows the inherited
er
members)
F2 Open class, method or variable information (tooltip text) Ctrl+⇧Shift+O Organize Imports
Editor Window
Ctrl+E Show list of open Editors. Use arrow keys and enter to
switch
Ctrl+- Toogle Split Editor old: Ctrl+_ static_final static final field
(Horizontal) - since before junit before method
Luna
after junit after method
Ctrl+< Toogle Split Editor old: Ctrl+{
beforeclass junit beforeclass method
(Vertical) - since Luna
Checkstyle
PMD Update-Site
Usus
SonarCube or Ignore certain warnings with Delete following keybindings in XFCE Settings → Window Manager →
SonarLint //NOSONAR or Keyboard:
@SuppressWarnings("squid:S0 1. Ctrl+Alt+↓/↑
0112") 2. Ctrl+F6
Refactoring JDeodorant 3. Alt+F5
Subversion Subclipse
Eclipse Team
If running IBus-Applet delete keybinding definition for "Ctrl+Space"
Provider
(Content Assist) in IBus-Settings
Plugin
m2e connector for the Eclipse Package Link file to package explorer
JDT Compiler Explorer Option
"Link with
m2e connector for the Maven
editor"
Dependency Plugin
Favorites Windows → Preferences → Java → Editor → x¹
Groovy-Eclipse m2e
Imports Content Assist → Favorites, New Type...
integration
Add types for Assertion library Hamcrest and/or
Decompiler Eclipse Class Decompiler
AssertJ, Mockito and JUnit-Assert
Show line numbers Window → Preferences → General → Editors → Formatter Window → Preferences → Java here
Text Editors → "Show line numbers" Options → Code Style → Formatter →
Off/On Tags for
Show print margin Window → Preferences → General → Editors →
Text Editors → "Show print margin" //@formatter:off and
//@formatter:on
Paste multiline Window → Preferences → Java → Editor → Typing
strings → "Escape text when pasting into a string literal" Check the Never join lines here
preference accessible on the
Import code x²
Line Wrapping and the
templates
Comments tabs of the Java
collection
Formatter preference page
Import code x²
template Improve Window → Preferences → Validation, Disable All
quotes" e
Potential Program
ming Potential resource leak
problems
Window → Preferences → Set "Displayed tab width: 4" Limit maximum Window → Preferences → General → Editors
General → Editors → Text and select "Insert spaces for number of open editors
Editors tabs"
check "Close editors automatically"
Save Window → Preferences →Java →Editor → Save Actions
choose value (e.g. 20) for "Number of opened
Actions
editors before closing"
check "Perform the selected actions on save"
JDT Window → Preferences → if you use Java < 8 (cannot use Refresh all In Package Explorer Ctrl+A, F5
Core/Null Java → Compiler → Optional) and cannot use Projects (with
Analysis Errors/Warnings, Section Guava Optional e.g. for legacy some closed in
to avoid Null analysis projects between)
NPEs
Use Working Package Explorer → open the drop-down menu →
check "Enable annotation- you can use the Eclipse Sets for better Select Working Set
based null analysis" annotations, the JSR-305 performance
annotations (old), custom ones
If Ctrl+⇧Shift+R and Ctrl+⇧Shift+T does not reflect
or the JSR-308 annotations
active Working Set check the small arrow on the top
from Checker Framework
right of the dialogue to select Working Set
Maven Window → Preferences → Maven → User Interface
make a mvn
eclipse:clean (CLI) and
import again in eclipse
you can use this command to search for the projects referencing old jar:
find -name '.classpath' -exec grep -Hin
'example-1.2.3.jar' {} \;