Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>PEG.js LanguageNew to Visual Studio Code? Get it now.
PEG.js Language

PEG.js Language

SrTobi

|
15,904 installs
| (4) | Free
Syntax highlighting and error reporting for PEG.js
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

!!!! Important !!!!

There is now a fork of PEG.js, called Peggy, that is actively maintained. I suggest migrating there (Peggy version 1.x.x is fully compatible to the latest PEG.js version).

They also provide a fork of this extension here with additional features like:

  • Goto Definition
  • Find Usages
  • Rule name completion
  • Rename Symbol
  • Outline

Please check it out!

This extension will stay as it is, continuing to provide support for the latest PEG.js version, but no further development is planned.

PEG.js Language Support

Syntax highlighting and error reporting for PEG.js in Visual Studio Code.

Syntax Highlighting

Syntax Highlighting

Error Reporting

Errors in the grammar are highlighted. Unfortunately only one error at a time is highlighted.

Error Reporting

Contributing

Feel free to contribute to this extension here. Please read the CONTRIBUTING.md.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft