Home

now

wiki

about

VSCode and Racket

I love micro, but every once in a while I like using an editor with a bit more pizzazz. Whenever I get that feeling, I usually go to VSCodium.

Most of my customizing of VSC recently has been around working with Racket, a lisp dialect which I think is pretty neat so far. There are a few things which I really like being able to do with VSC that micro just really can't support, such as fancy syntax highlighting and auto-linting on save. With that in mind, I still like a pretty bare-bones config.

First off, I use three packages: "Magic Racket", "Natty", and "Trigger Task on Save". To use the auto-linting, you need a linter. I'm using the "fmt" tool packaged with raco, which you can get by running this command: "raco pkg install fmt". Here are the rest of my configs:

settings.json
{
  "triggerTaskOnSave.tasks": {
    "lint-racket": [
      "*.rkt",
    ],
  },
  "editor.bracketPairColorization.enabled": true,
  "editor.guides.bracketPairs": "active",
  "editor.wordWrap": "on",
  "editor.minimap.enabled": false,
  "workbench.colorTheme": "Natty",
  "window.menuBarVisibility": "hidden",
  "workbench.statusBar.visible": false,
  "workbench.activityBar.visible": false,
  "editor.formatOnSave": true
}
tasks.json
{
  "version": "2.0.0",
  "tasks": [
    {
      "label": "lint-racket",
      "type": "shell",
      "command": "raco fmt -i ${file}",
      "group": "build"
    },
  ]
}
Incoming:

wiki