Using information gleaned from this post:
Here's one way to do it:
Show:Hide File Extension.kmmacros (4.1 KB)
For more information, see the wiki Searching the Forum for Answers section.