Keyboard macros via Power Toys Keyboard Manager

Just thought I’d share a helpful time-saver…

I often type the same two commands while coding in the Arduino IDE while researching issues to display values in the serial monitor. I always have it display the variable name followed by the value stored in that variable. I start by typing:

Serial.print(“: “); Serial.println();

Then I paste the variable name into both of them:

Serial.print(“adc_value: “); Serial.println(adc_value);

Sometimes several variables need to be displayed, then I have to copy/paste the line.

I checked the IDE keyboard shortcut list, and found that CTL-SHIFT-0 was not being used, so I created a “Shortcut” to insert Serial.print(“: “); Serial.println(); when I press CTL-SHIFT-0. It’s just something that saves a little time and makes using the IDE a more enjoyable experience.

I downloaded the Power Toys app from the Microsoft Store, fired it up, and navigated to:

PowerToys Settings > Input & Output > Keyboard Manager > Shortcuts > Remap a shortcut

Thanks for sharing!