IntelliJ IDEA 13.1.0 Web Help

When you use code completion in Java, you can finish selection from the suggestion list with an exclamation mark. So doing, the exclamation mark will be placed before a Boolean method or variable being completed, thus negating the whole expression.

To negate an expression
  1. Start typing an expression, and press Ctrl+SpaceCtrl+SpaceCtrl+SpaceCtrl+SpaceAlt+SlashCtrl+SpaceCtrl+SpaceCtrl+Space or Ctrl+Back SlashCtrl+SpaceControl SpaceControl SpaceControl Space.
  2. In the suggestion list, select the desired part of the expression.


  3. Press ! key. Your expression is completed with negation:


See Also



Getting Started:

Web Resources: