Command Selection Trim

The Trim command removes leading and trailing whitespace from the selected text.

Note that:

{Trim}

is equivalent to:

{CopySelection}
{TrimClipboard}
{Paste}

Example

The following expansion:

{Trim}

replaces the selected text with its version without leading and trailing whitespace.