Requirements
Features
- Syntax highlighting for Karina files
- Command for running Karina code directly from VSCode
- Error and warning diagnostics for Karina files
- Quick fixes for imports and types
- Completion suggestions
- Document Symbols and Outline view
Setup
Install the extension from the VSCode Marketplace or search for "Karina" in the extensions tab of VSCode.
Download the Karina Language Server and configure the path in the extension settings (karina.lspLocation).
Create a new folder called src in your workspace and create a main.krna file in it with the following content:
pub fn main(args: [string]) {
println("Hello, World!")
}
Create a karina-build.json file in the root of your workspace with the following content:
{
"source": "src"
}
Set a Keybind for the karina.run.main command or use the command palette to run.
| |