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.
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
After Formatting
Folding
Hover and Snippets
Installation to Test the extension locally
Clone this repository.
Run npm install to install dependencies.
Open the repository in VS Code.
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.