Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/riari/odin-aoc-vscode-template

A template for doing Advent of Code in Odin with VS Code.
https://github.com/riari/odin-aoc-vscode-template

Last synced: about 2 months ago
JSON representation

A template for doing Advent of Code in Odin with VS Code.

Awesome Lists containing this project

README

        

# Odin Advent of Code VS Code template

This is a basic template to get started with [Odin](https://odin-lang.org/) in VS Code. It's set up with Advent of Code in mind and makes use of these extensions:

* [CodeLLDB](https://marketplace.visualstudio.com/items?itemName=vadimcn.vscode-lldb) (Linux or macOS)
* [C/C++](https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools) (Windows)
* [Odin Language](https://marketplace.visualstudio.com/items?itemName=DanielGavin.ols)

Available tasks:

* **Init:** Create a package in the workspace with the provided directory name. This writes a `main.odin` with some boilerplate as well as an empty `input` file.
* **Build:** Build the package of the current file's package.
* **Test:** Build and run any tests available in the current file's package.

Available launch configurations:

* **Debug:** Build and debug the current file's package.
* **Debug tests:** Build and debug any tests available in the current file's package.

There are also Windows variants of the launch configurations using vsdbg.

> [!NOTE]
> The _Debug tests_ launch configuration will execute the tests twice - once without a debugger and again with, because `odin test` both builds and runs the tests. If I can figure out how to make it only build them, I'll update the config.

To get started, run the **Init** task to generate boilerplate for day 01.