Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/riari/odin-aoc-vscode-template
- Owner: Riari
- License: gpl-3.0
- Created: 2024-10-06T10:46:47.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-10-28T23:00:23.000Z (2 months ago)
- Last Synced: 2024-10-29T00:16:45.596Z (2 months ago)
- Language: Odin
- Homepage:
- Size: 22.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.