A simple tool used to invert conditions for all modern programming languages and frameworks!
Highlight conditions that you want to invert:
Invert conditions in ternary operators, for loops, and more:
Invert conditions inside html templates:
How to use
Highlight the area of code that you want to invert and press the following key combination on your keyboard:
You can alternatively rebind the key combination to your preference by searching for the following command inside the VSCode's Keyboard Shortcuts section:
This tool has been designed to take an input condition, analyze it and produce a new condition that would yield an absolute opposite result. This is illustrated by the following example:
Condition Inverter supports all modern progrogramming languages and frameworks. This includes technologies that have been ranked as the most popular on the Stack Overflow Developer Survey.
Open source is built by the community for the community. All contributions to this project are welcome!