Sharing this little utility I've been running for a while now.
When typing "$var", this utility automatically types out:
%Variable%% then places cursor in between percent symbols like this %|%.
Better yet, if you already have the name of your variable copied on your clipboard, it will type out:
Expand: $var.kmmacros (21.1 KB)