BBEdit Professional text and code editor for macOS
BBEdit Cheatsheet
Grep Patterns (BBEdit Search)

BBEdit supports full Perl-compatible regex in its search.

Pattern Matches
\b\w+\b Whole words
^\s*$ Blank lines
<[^>]+> HTML tags
\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3} IP addresses
#[0-9a-fA-F]{6} Hex color codes

Text Factories

Text Factories chain multiple operations into reusable workflows:

Step Type Example
Find & Replace Standardize formatting
Run Unix Filter Pipe through shell command
Change Case UPPER, lower, Title
Sort Lines Alphabetical, numeric
Remove Duplicates Unique lines only
Process Lines Delete/keep matching lines
Language Support
Language Features
HTML/CSS Syntax coloring, preview, tidy
JavaScript Syntax coloring, function nav
Python Syntax coloring, function nav
Markdown Syntax coloring, preview
Shell scripts Syntax coloring, execution
PHP Syntax coloring, function nav
Ruby Syntax coloring, function nav
JSON/YAML Syntax coloring, validation
BBEdit Shortcuts
Text Editing
Shortcut Action
โŒ˜Z Undo
โŒ˜โ‡งZ Redo
โŒ˜C Copy
โŒ˜X Cut
โŒ˜V Paste
โŒ˜โŒฅV Paste with previous clipboard
โŒ˜D Select word
โŒ˜L Select line
โŒ˜โ‡งL Select paragraph
โŒ˜โŒฅโ†‘ Move line up
โŒ˜โŒฅโ†“ Move line down
File Operations
Shortcut Action
โŒ˜N New document
โŒ˜O Open file
โŒ˜S Save
โŒ˜โ‡งS Save as
โŒ˜W Close window
โŒ˜โ‡งT New text window