Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>MeTTa Lang Formatter + Goto Definition + Linter + Highlighter + Hover-Detail + Snippets + etc...New to Visual Studio Code? Get it now.
MeTTa Lang Formatter + Goto Definition + Linter + Highlighter + Hover-Detail + Snippets + etc...

MeTTa Lang Formatter + Goto Definition + Linter + Highlighter + Hover-Detail + Snippets + etc...

Baslael Workineh Ayele

|
269 installs
| (1) | Free
This extension provides Syntax Formatting, Goto Definition, Linting, Code Snippet, Highlighting, Code Folding, Simple Refactor and File-Icon for MeTTa programming language.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

MeTTa Language Support

This extension provides Goto Definition ,Syntax Auto-Formatting, Highlighting, Linting, Hovering for detail, Code Snippets, Folding and File-Icon for the MeTTa programming language.

Instructions

  • Install the extension
  • If your code base is only in MeTTa, Set Color Theme provided by the extension
  • To change between themes press: CTR + SHIFT + P, search for color theme and click, then choose Dark Modern or Metta Theme.
  • I don't recommend setting file icon theme provided by this extension since it currently doesn't support other file types other than MeTTa.

Features

  • Document Auto-formatting for MeTTa files by pressing CTR + SHIFT + P Then Choosing MeTTa: Enable Formatter
  • Goto Definition: Navigate directly to function definitions by holding Ctrl (or Cmd on macOS) and clicking on function calls.

Click to view Goto Definition in action!

  • Syntax highlighting for MeTTA language
  • Hovering for more detail on keys
  • Linting for Error handling
  • Snippets to give you starter
  • Folding to make you code cleaner
  • Custom file icon for .metta files (I only added 1 icon for MeTTa. I will add others later if necessary)
  • Simple Refactor with ctr + shift + R
  • More Features will be added. You can also contribute for more features.

Some Screenshots

Before Formatting

Before Formatting

After Formatting

After Formatting

Folding

Folding

Hover and Snippets

Hover and Snippets

Installation to Test the extension locally

  1. Clone this repository.
  2. Run npm install to install dependencies.
  3. Open the repository in VS Code.
  4. Press F5 to open a new VS Code window with the extension loaded.

Usage

  • Open a .metta file to see the syntax highlighting and file icon.
  • Press Ctrl+Shift+P the choose MeTTa: Enable Formatter to format the document.
  • CTR + SHIFT + P then choose Metta Theme for Highlighting Perfectly (Note: It doesn't support other languages so you have to shift to Dark Modern theme for other language.)
  • Hover over the Keywords to read the detail on it
  • Go over the Number column to see the Folding arrow.

Contributing

Feel free to submit issues and pull requests for new features and improvements.

Contributers

  • Baslael Workineh
  • Nardos Amakele
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft