FYI, @Benjamin Thomas made a VS Code Extension adding support for Roc syntax highlighting: https://github.com/roc-lang/roc/issues/3854
Whoa! I didn't expect progress on a compeDitor for a few months more, but I'm glad for it. Is use of this extension encouraged, or will it simply exist?
up to you! Obviously the official editor isn't far enough along to be used as a daily driver yet, so if you're already using vs code anyway, might as well get nice syntax highlighting!
like I mentioned in the issue, I don't want the official roc-lang organization to adopt any tooling for other editors, because I want to keep focused on the official editor and don't want to send any mixed messages about that :big_smile:
:100: I agree
Last night I considered learning how vim syntax highlighting configurations work to write one for Roc but I either restrained myself or got lazy - hard to say which
Hello team. If you need that sweet little icon urgently, make sure you refresh your vscode extension.
Now I think I'm ready to learn a bit of Roc ^^
The icon is definitely motivating :)
Hello everyone,
Just a small announcement: there's yet another VSCode extension out there! My main motivation for creating it was to have a better understanding of LSP (although currently, it only offers syntax highlighting), not to compete with the Roc editor. Roc looks very promising and I want it to succeed. So the more people use it, the sooner it reaches critical mass, the sooner it becomes mainstream!
Cool, @Ivan Demchenko looking good. If it may help you here is the rust crate that we are currently using for syntax highlighting on the tutorial, docs etc. It currently uses the compiler parser to tokenise the syntax.
Thank you @Luke Boswell for your kind words! I'll check the crate out!
@Ivan Demchenko Thanks for the useful extension, are you open to PRs? I've been using your extension today, and I've noticed some features that could be added. I'm thinking specifically of the ability to highlight an expression and type (
to wrap the expression in brackets.
@Hannes Oh, absolutely! Thank you very much!
@Ivan Demchenko Submitted a PR to fix a bug with the language configuration, that should fix the shortcut to comment/uncomment and automatically close brackets. :thumbs_up: https://github.com/raqystyle/roc-vscode-unofficial/pull/1
@Hannes Thank you so much! I merged it and published a new patch version.
Update: and it's live :) Kudos @Hannes for the contribution!
@Hannes you're on fire! :big_smile:
I just noticed a few things while I was fixing the language config bug that could be improved, it felt wrong to just have the fixes on my local version and not upstream them :sweat_smile:
@Hannes v0.0.5 is on its way
Sorry for the delay, I went on the summer holiday break.
The new version 0.0.7 has been released. Kudos to @Hannes for his contributions!
thanks @Ivan Demchenko, and welcome back! I've been using the extension all the time! :smiley:
@Richard Feldman, thank you for your kind words! And for Roc too :)
Roc is as cool as it is because of the people contributing to it, like you! So thank you! :hearts:️
Last updated: Jul 06 2025 at 12:14 UTC