One of the most popular naming conventions for unit tests, and the one that we use is writing out the expected behavior as a sentence with underscores(_) instead of spaces.
The only problem is typing all those underscores is kind of a pain. That’s where AutoHotKey comes in! AutoHotkey (AHK) is a free, open-source macro-creation and automation software for Windows that allows users to automate repetitive tasks. It has a powerful scripting language that can allow us to intercept a key and replace it with another key. I’ve taken advantage of this to create an AHK script that detects if “Scroll Lock” is on and automatically replace spaces with underscores if it is.
Simply add the above code to a new AHK script and run it and you will now be able to toggle underscores for spaces by hitting the Scroll Lock button!