This extension adds Hy language support to VS Code. Features (presently) include basic syntax highlighting and the ability to evaluate expressions by sending them to a Hy REPL.
Features:
[x] Basic syntax highlighting
[x] Basic Hy code snippets
[x] Code evaluation shortcuts
[x] Improved syntax highlighting
[x] Paredit-style structural editing based on S-expressions (slurping, barfing, dragging, killing, rewrapping, splicing, raising, navigation, auto-balancing for parens and other wrappers [({""})])
[x] Auto-formatting on edit (esp. auto-indentation)
Planned features:
[ ] Intellisense code completion for built-in Hy functions and macros
How to Install
VS Code Extension Marketplace
Navigate to the VS Code Extension marketplace within VS Code.
Search for "vscode-hy (hylang official)" and install as usual.
Local Install
Navigate to your local .vscode (or .vscodium) extension directory (e.g. $ cd ~/.vscode/extensions)
Clone this repo within that directory (e.g. git clone https://www.github.com/hylang/vscode-hy)
Reload or relaunch any open VS Code/VS Codium windows
Latest Update
0.0.10 (Nov 3, 2024)
Tweak to bracket autoclose rules
Fixed formatter bugs (no longer confused by tuple syntax and comments)
Fixed some syntax highlighting glitches
Contribution
Issues and pull requests welcome.
Credits
This extension is a fork and reedit of Allen Huang's xuqinghan/vscode-hy extension: Copyright (c) 2016 Allen Huang