Toggle storage capacity display in macOS Finder with a keyboard shortcut.
⌘ + /Use this shortcut in Finder to toggle On/Off.
Practical Note
This snippet fits well when I do not want to rewrite the same operation or check around macos, finder, tips over and over. Keeping it as a small helper makes the caller easier to read because the intent stays in the foreground.
If the branches and preconditions start growing, it is usually better not to force everything into one snippet. Splitting the steps and helper responsibilities is easier to maintain.
Implementation Note
For reuse, it helps to decide the input, output, and side effects first. With Display Storage Capacity in Finder, the call site stays clearer when it is obvious what this snippet is trying to shorten in the macos, finder, tips context.
Not every precondition needs to live inside the same block. The result is usually steadier when the caller responsibility and the snippet responsibility stay separate.
hsb.horse