Chapter 8
Run line, case, and deletion commands
Select the lines you want, then use the line-operation commands to:
- Sort ascending or descending.
- Reverse line order.
- Remove duplicate lines.
- Remove blank lines.
- Trim trailing whitespace.
- Join lines.
- Move a row up or down (⌥⌘↑ and ⌥⌘↓).
Use case transforms for upper case, lower case, or capitalization. Use Delete Word, Delete Line, or Delete Paragraph when a semantic unit is easier than a drag selection.
The selection determines scope. With no useful selection, some commands operate on the current line or paragraph. For a large cleanup, save first so Version History records the earlier state, then run one operation at a time and inspect the result.