Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>LarkNew to Visual Studio Code? Get it now.
Lark

Lark

Dynova

| (0) | Free
Language support for Lark grammar files
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Community-Project Apache 2 License Lark Visual Studio Code

Lark for Visual Studio Code

This extension provides language support for Lark grammar files in Visual Studio Code.

Lark Syntax Highlighting

Contributions are greatly appreciated. Please fork this repository and open a pull request to make grammar tweaks, add support for other subgrammars etc.

✨ Features

  • ✅ Syntax highlighting for:
    • Rule definition
    • Terminal definition
    • Directives
    • Operators
    • Comments (//)
    • Strings (quoted & backticked)
  • ✅ Markdown embedding support
  • ✅ Custom file icon for .lark files

📦 Installation

  1. Open Visual Studio Code.
  2. Go to the Extensions view by clicking on the Extensions icon in the Activity Bar on the side of the window or by pressing Ctrl+Shift+X.
  3. Search for "Lark".
  4. Click on the "Install" button for the extension named "Lark" [↗] by Dynova [↗].
  5. Once installed, you can start using Lark syntax highlighting in your .lark files.
  6. Optionally, you can set the default language for .lark files by adding the following to your settings.json:
"files.associations": {
    "*.lark": "lark"
}

Release Notes

All changes are listed in our change log ↗.

Contributing

Contributions are greatly appreciated.

Please fork this repository and open a pull request to make grammar tweaks, add support for other subgrammars etc.

Contributors

See the list of contributors in our contributors page ↗.

License

This project is licensed under the terms of the Apache-2.0 license. See the LICENSE ↗ file.

Disclaimer

The Lark Parser team already provides an extension for Visual Studio Code that includes syntax highlighting as part of the Lark grammar syntax support ↗ published in their github organization Lark Parser ↗, gently provided by Dirk Thomas.

This extension is based on the same grammar but is actively maintained independently by Dynova ↗ as an open source project.

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