The Invert Boolean refactoring lets you change the sense of a Boolean method or variable to the opposite one.
- Place the caret at the name of the method or variable that you want to refactor.
- On the main or context menu, select .
- In the dialog that opens, specify the name for the inverted method or variable.
- Preview and apply changes.
Last modified: 4 September 2018