Command Selection Trim Right

The TrimRight command removes trailing whitespace from the selected text.

Note that:

{TrimRight}

is equivalent to:

{CopySelection}
{TrimRightClipboard}
{Paste}

Example

The following expansion:

{TrimRight}

replaces the selected text with its version without trailing whitespace.