Favorites, Duplicate, Format-on-Save
Three small polishes that matter in daily use. All three are Free forever.
Duplicate request — ⌘D
Section titled “Duplicate request — ⌘D”Place the cursor inside any request block and press ⌘D. A copy is inserted directly below with a (copy) suffix on the name and the caret placed on the method line, ready to edit.
### Get user 42GET {{baseUrl}}/users/42# @assert status == 200
### Get user 42 (copy) ← inserted by ⌘DGET {{baseUrl}}/users/42# @assert status == 200Works on .http, .flow, .ws, .mqtt, and .mock files. A ⧉ gutter button is also shown next to the ▶ Run button.
Favorites — ⌘⇧P
Section titled “Favorites — ⌘⇧P”Pin the most-run requests to a Favorites section at the top of the File Tree sidebar.
⌘⇧Pwhile the cursor is in a request block pins it.- Click a favorite to jump directly to the source file and scroll to that block.
- Right-click a favorite → Unpin / Run.
- Favorites survive file renames (tracked by a stable internal ID).
Limit: 20 favorites per workspace. Stored locally in .sendpad/favorites.json — not shared through git.
Format on save
Section titled “Format on save”Enable Format on save in Settings → Editor (default on). On ⌘S:
- Directives normalize spacing —
# @name foostays tidy - Headers get one space after
: - JSON bodies pretty-print with 2-space indent (templates
{{x}}are preserved) - Blank lines between blocks are normalized to exactly one
- Trailing newline is ensured
Opting out
Section titled “Opting out”Skip formatting for a specific file by adding a single line at the very top:
# @format off
### This file won't be touched by format-on-saveGET https://example.comAlso: ⌥⇧F runs the formatter on-demand regardless of the setting.
Keyboard reference
Section titled “Keyboard reference”| Shortcut | Action |
|---|---|
⌘D | Duplicate current request block |
⌘⇧P | Pin current request to Favorites |
⌥⇧F | Format current file on-demand |
⌘S | Save (with format-on-save, unless # @format off) |