DuckyScript Cookbook

Logo

A VSCode extension that speeds up DuckyScript development with ready-to-use snippets and fun ducky icons for a more efficient and enjoyable scripting experience.

View the Project on GitHub aleff-github/DuckyScriptCookbook

🦆 DuckyScript Cookbook

Write DuckyScript with less friction, better hints, and a handy cookbook panel full of ready-to-use payload ideas.

DuckyScript Cookbook is a community-made extension for VS Code and VSCodium that makes DuckyScript easier to read, faster to write, and a bit more fun to work with.

Why install it?

Because plain text payload files deserve a little love too.

With DuckyScript Cookbook you get:

What it feels like to use

Better colors, without forcing a theme

The extension highlights DuckyScript nicely even with your usual VS Code or VSCodium theme.

If you want the full cookbook vibe, you can also switch to the bundled DuckyScript Light or DuckyScript Dark themes.

Highlight commands from other DuckyScript implementations

The extension includes syntax highlighting for known USB Army Knife commands. If your firmware adds more commands (for example, custom USB Army Knife or Flipper Zero extensions), you can highlight them without changing this extension.

Open your user settings.json to use them everywhere, or the project’s .vscode/settings.json to configure a specific workspace. Add the command names under duckyscript.customCommands:

{
  "duckyscript.customCommands": [
    "MY_CUSTOM_COMMAND",
    "ANOTHER_COMMAND"
  ]
}

Replace these examples with the actual command names supported by your device. Commands match case-insensitively at the start of a line (leading spaces are allowed). The longest configured name takes priority when names share a prefix. Changes to the setting refresh highlighting automatically.

This setting adds syntax highlighting only; it does not add command execution, documentation or autocomplete for those commands. Semantic highlighting must be enabled in your active editor theme (it is enabled in both bundled DuckyScript themes).

Help while you type

Start writing and trigger suggestions with Ctrl+Space.

Commands, functions, and structures come with short inline explanations so you can stay in the editor instead of jumping back and forth between docs and notes.

A cookbook panel for quick payload building

Open the DuckyScript Cookbook view from the activity bar and insert recipe templates with a click.

It is especially handy when you want to:

Snippets that save repetitive typing

Loops, conditions, common commands, and reusable structures are quicker to drop in, tweak, and reuse.

Quick start

  1. Open a .ds, .duckyscript, or compatible text file.
  2. Start typing DuckyScript.
  3. Press Ctrl+Space to explore commands and inline help.
  4. Open the DuckyScript Cookbook panel from the activity bar.
  5. Click a recipe to insert it into the active editor.

Great for

Available on

Feedback, ideas, and contributions

Got a recipe idea, found a bug, or want support for more DuckyScript features?

Open an issue or contribute on GitHub:

License

Released under the GPLv3 license. See LICENSE.