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.
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.

Because plain text payload files deserve a little love too.
With DuckyScript Cookbook you get:
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.
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).
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.
Open the DuckyScript Cookbook view from the activity bar and insert recipe templates with a click.
It is especially handy when you want to:
Loops, conditions, common commands, and reusable structures are quicker to drop in, tweak, and reuse.
.ds, .duckyscript, or compatible text file.Ctrl+Space to explore commands and inline help.Got a recipe idea, found a bug, or want support for more DuckyScript features?
Open an issue or contribute on GitHub:
aleff-github/DuckyScriptCookbookReleased under the GPLv3 license. See LICENSE.