Skip to content

Favorites, Duplicate, Format-on-Save

Three small polishes that matter in daily use. All three are Free forever.

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 42
GET {{baseUrl}}/users/42
# @assert status == 200
### Get user 42 (copy) ← inserted by ⌘D
GET {{baseUrl}}/users/42
# @assert status == 200

Works on .http, .flow, .ws, .mqtt, and .mock files. A gutter button is also shown next to the ▶ Run button.

Pin the most-run requests to a Favorites section at the top of the File Tree sidebar.

  • ⌘⇧P while 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.

Enable Format on save in Settings → Editor (default on). On ⌘S:

  • Directives normalize spacing — # @name foo stays 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

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-save
GET https://example.com

Also: ⌥⇧F runs the formatter on-demand regardless of the setting.

ShortcutAction
⌘DDuplicate current request block
⌘⇧PPin current request to Favorites
⌥⇧FFormat current file on-demand
⌘SSave (with format-on-save, unless # @format off)