Skip to content

ghisguth/vscode-monkey-c

Repository files navigation

Monkey C (Lightweight Community Edition)

Disclaimer: This is a small, lightweight community plugin created in 2016. In 2020, Garmin published their Official Monkey C Extension.

The official extension provides a comprehensive suite of features including Autocomplete, Folding Ranges, Real time errors, Renaming, and Syntax highlighting.

In contrast, this extension provides lightweight syntax highlighting and basic formatting for those who prefer a minimal, fast setup.

Provides Visual Studio Code language support for the Garmin Connect IQ Monkey C language.

Features

  • Syntax Highlighting: Comprehensive syntax highlighting for Monkey C, including support for modern MonkeyTypes, access modifiers, and type casting keywords.
  • Code Formatting: Experimental basic code formatting capabilities leveraging clang-format.

Syntax highlighting

Installation

To install the extension, search for "Monkey C" within the Visual Studio Code Extensions view (Ctrl+Shift+X or Cmd+Shift+X) and click Install.

Development and Testing

Automated Testing

To run the automated tests for both TextMate grammar and code formatting using Mocha:

npm run test

To manually verify the test playground file within the Extension Development Host:

code --extensionDevelopmentPath=$(pwd) ./test/HighlightTest.mc

Known Issues

  • This extension provides basic syntax highlighting and formatting. However, it is not under active development for new features, and not all Monkey C language features and edge cases are fully supported.

Release Notes

Detailed release notes and version history are available in the CHANGELOG.md file.

About

Garmin Monkey C language support for VS Code

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors