r/rakulang • u/b_scan • May 01 '22
Introducing Raku Support in Visual Studio Code
Hey All,
I just released a simple Raku extension for Visual Studio Code. Vscode recognizes Perl 6, but this adds explicit Raku support, a raku icon, syntax highlighting, and a simple language server to provide syntax checking. The syntax highlighting is from the official Atom extension. The language server is based on my work on the Perl Navigator, a full-featured language server that provides autocompletion, goto definition, hover, linting, code formatting (via Perl::Tidy), etc for Perl 5.
I was surprised that not a single other vscode extension exists for "Raku" (although a couple unmaintained Perl 6 ones are on the marketplace). If anyone wants to contribute, I'll happily take pull requests. Long-term, I'd love to add some of the features from the Perl Navigator, which primarily works by inspecting the symbol table and coderefs.
https://marketplace.visualstudio.com/items?itemName=bscan.raku-navigator
https://marketplace.visualstudio.com/items?itemName=bscan.perlnavigator
