Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Phel LangNew to Visual Studio Code? Get it now.
Phel Lang

Phel Lang

Phel-Lang

|
2 installs
| (0) | Free
Phel language support for VS Code: syntax highlighting, code completion, and snippets for .phel files (plus an optional Xdebug-based debug adapter).
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Phel Lang for VS Code

Marketplace Installs Release License: MIT

VS Code support for Phel - a functional Lisp that compiles to PHP.

Why this extension

Writing Phel without editor support means colourless code, no completion for the 400+ symbols in phel.core, and dropping back to PHP-level debugging. This extension fixes all three.

  • Highlighting - full coverage of forms, macros, reader macros, tagged literals (#inst, #regex, #php, …) and reader conditionals (#?(...)).
  • Completion for every public symbol in phel.core (47 special forms, ~70 macros, 394 functions).
  • Snippets for everyday scaffolding - defn, let, cond, try, deftest, ->, …
  • Native debug adapter - set breakpoints in .phel files; the adapter translates between Phel and the compiled PHP via Xdebug.

Install

In VS Code, open the Extensions sidebar (Cmd+Shift+X / Ctrl+Shift+X), search for "Phel Lang", click Install. Or from the terminal:

code --install-extension Phel-Lang.phel-lang

Requires VS Code 1.75+. Other paths (.vsix from GitHub releases, build from source, symlink for live development): see docs/installation.md.

First steps

  1. Open any .phel file - highlighting kicks in automatically.
  2. Try completion - start typing re- or swap and accept a suggestion.
  3. Expand a snippet - type defn Tab and tab through the placeholders.
  4. Set a breakpoint in .phel, add a launch config (see docs/debugging.md), press F5.

Documentation

Topic Link
Installation paths docs/installation.md
Syntax highlighting reference docs/syntax.md
Completion & snippets docs/completion.md
Debugging with Xdebug docs/debugging.md
Tracing with tap> docs/taps.md
Settings reference docs/settings.md
Troubleshooting docs/troubleshooting.md
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft