Java Typing (Eclipse)
Tuesday, 31 December 2013, 19:05
Tags: Eclipse
While checking out the Eclipse preferences I found two pretty interesting options for the Java editor. (Window -> Preferences -> Java -> Editor -> Typing)
- Automatically insert at correct position: With this option enabled for semicolons or braces, Eclipse will insert the semicolon or brace automatically at the correct position on the current line. E.g. when you type a semicolon in the middle of a line, the semicolon will automatically be positioned at the end of the line.
- Escape text when pasting into a String literal: If you enable this option, you can paste text in a String and Eclipse will automatically escape all the necessary characters such as backslashes.