HandyLLM in Visual Studio Code

January 7, 2026 ยท View on GitHub

vsmarketplace Open VSX Version PyPI

Make HandyLLM and hprompt a breeze in VS Code (and compatible editors).

Features

Hprompt syntax highlight

See demo below:

example screenshot

  • Also highlights hprompt / hpr fenced code blocks in both Markdown editor and Markdown Preview.

Run hprompt file

  • Run the active hprompt file from the action button, or right click an .hprompt file, or issue from the command palette Run Hprompt (keyboard shortcut configured).
  • You can change handyllm command used in the terminal by setting handyllm.commandName (needs installation of HandyLLM CLI).

See gif below:

run hprompt

Create starter hprompt file

Issue from command palette New Hprompt File, or New File and then select Hprompt File.

See gif below:

create hprompt

Other Useful Enhancements

  • Editor decorations for Hprompt frontmatter and role lines. You can customize their appearance via settings.
  • Foldable & sticky-scroll headings for easier navigation.
  • Snippets for relatively complex Hprompt constructs.
  • Frontmatter YAML validation with real-time feedback. Requires installation of the YAML extension and proper schema configuration (see next section).

Frontmatter Validation Setup

Follow these steps to enable YAML validation for Hprompt frontmatter.

  • Install the Red Hat YAML extension.
  • Configure a schema for *.hprompt.yaml (hprompt frontmatter virtual documents) by adding the following to your settings.json:
    {
    	"yaml.schemas": {
    		"https://raw.githubusercontent.com/atomiechen/HandyLLM/main/assets/hprompt-fm.schema.json": "*.hprompt.yaml"
    	}
    }
    
    You can also download the schema file and reference it locally if preferred.

Once configured, the frontmatter area supports schema-based hovers and completions while you type.