Odincode for VS Code and Cursor
Odincode.ai is the AI coding assistant with data in Denmark. Powered by Odincore.ai.
This extension opens Odincode in your editor and passes it the file you are working on, a selection or the editor's
errors and warnings. It uses the Odincode CLI you installed and your Odincode.ai login.
Requirements
- The Odincode CLI, version 2.2.0-odc.14 or later. If it is missing, the extension offers to install it from
odincode.ai and shows the exact command first. You can also install it yourself from https://odincode.ai/download.
- An Odincode.ai account. Sign in once with
odincode login in a terminal, or with Odincode: Sign In.
Use
| Command |
What it does |
Keys (Windows, Linux / macOS) |
| Odincode: Open |
Shows Odincode, or opens it beside the editor |
Ctrl+Alt+O / Cmd+Alt+O |
| Odincode: Open in New Tab |
A new Odincode session (also the button in the editor's title bar) |
Ctrl+Alt+Shift+O / Cmd+Alt+Shift+O |
| Odincode: Add File Reference |
Adds @file to the prompt, with the selected lines as @file#10-20 |
Ctrl+Alt+K / Cmd+Alt+K |
| Odincode: Send Selection |
Pastes the selected text into the prompt |
|
| Odincode: Send Problems in File |
Pastes the file's errors and warnings into the prompt |
|
| Odincode: Send Problems in Workspace |
The same for every workspace file the editor reports problems for |
|
| Odincode: Sign In |
Runs odincode login in a terminal |
|
| Odincode: Show Menu |
Everything above, plus your account, your usage and the CLI upgrade (also Odincode in the status bar) |
|
Nothing is submitted for you: the extension adds the context, and you write the question and press Enter. Add File
Reference is also in the editor's and the explorer's context menus.
Settings
odincode.cliPath: the full path to odincode (odincode.exe on Windows) if it is not on your PATH or in
~/.odincode/bin. Only your user settings count; a workspace's settings cannot set it. Odincode does not start a CLI
it finds on PATH inside an opened folder (a repository could have put it there) and tells you so; if it is your own,
set this setting to it.
odincode.terminalLocation: editor (a tab beside the editor, the default) or panel (the terminal panel).
odincode.context.sendAs: auto (the default: paste on macOS and Linux, reference on Windows), paste or
reference. reference sends file references and one line of problems instead of pasting text. On Windows,
pasting through the terminal is not verified yet: if the terminal drops the paste markers, every pasted line is
submitted on its own, and a line that starts with ! runs as a shell command.
Privacy
The extension makes no network connections of its own and sends no telemetry. It starts the Odincode CLI, which talks
only to Odincode.ai. The one exception is the install command, which runs only when you choose Install, visibly in a
terminal. Your editor may have online features of its own; Odincode does not control them.
In Remote SSH, WSL and containers the extension runs where your files are, and uses the CLI installed there. In a dev
container or Codespace the repository defines the container: its programs and its settings, including
odincode.cliPath. There Odincode shows which program it is about to start, and asks before every sign-in.
The extension updates only when you install a new version: download it from https://odincode.ai/download.
Odincode til VS Code og Cursor (dansk)
Odincode.ai er AI-kodeassistenten med data i Danmark. Powered by Odincore.ai.
Udvidelsen åbner Odincode i din editor og giver den filen, du arbejder i, en markering eller editorens fejl og
advarsler. Den bruger den Odincode-CLI, du har installeret, og dit Odincode.ai-login.
Krav
- Odincode-CLI'en, version 2.2.0-odc.14 eller nyere. Mangler den, tilbyder udvidelsen at installere den fra
odincode.ai og viser først den præcise kommando. Du kan også selv installere den fra https://odincode.ai/download.
- En Odincode.ai-konto. Log ind én gang med
odincode login i en terminal eller med Odincode: Log ind.
Brug
| Kommando |
Hvad den gør |
Taster (Windows, Linux / macOS) |
| Odincode: Åbn |
Viser Odincode eller åbner den ved siden af editoren |
Ctrl+Alt+O / Cmd+Alt+O |
| Odincode: Åbn i ny fane |
En ny Odincode-session (også knappen i editorens titellinje) |
Ctrl+Alt+Shift+O / Cmd+Alt+Shift+O |
| Odincode: Tilføj filreference |
Tilføjer @fil til prompten, med de markerede linjer som @fil#10-20 |
Ctrl+Alt+K / Cmd+Alt+K |
| Odincode: Send markering |
Indsætter den markerede tekst i prompten |
|
| Odincode: Send problemer i filen |
Indsætter filens fejl og advarsler i prompten |
|
| Odincode: Send problemer i arbejdsområdet |
Det samme for alle filer i arbejdsområdet, som editoren melder problemer i |
|
| Odincode: Log ind |
Kører odincode login i en terminal |
|
| Odincode: Vis menu |
Alt ovenfor plus din konto, dit forbrug og opgradering af CLI'en (også Odincode i statuslinjen) |
|
Intet bliver sendt for dig: udvidelsen tilføjer konteksten, og du skriver spørgsmålet og trykker Enter. Tilføj
filreference findes også i editorens og stifinderens genvejsmenuer.
Indstillinger
odincode.cliPath: den fulde sti til odincode (odincode.exe på Windows), hvis den ikke er på din PATH eller i
~/.odincode/bin. Kun dine brugerindstillinger tæller; et arbejdsområdes indstillinger kan ikke sætte den. Odincode
starter ikke en CLI, den finder via PATH i en åbnet mappe (et repositorium kan have lagt den dér), og siger det; er
den din egen, så sæt denne indstilling til den.
odincode.terminalLocation: editor (en fane ved siden af editoren, standard) eller panel (terminalpanelet).
odincode.context.sendAs: auto (standard: paste på macOS og Linux, reference på Windows), paste eller
reference. reference sender filreferencer og én linje med problemer i stedet for at indsætte tekst. På Windows er
indsættelse gennem terminalen endnu ikke efterprøvet: taber terminalen indsættelsens markører, sendes hver indsat
linje for sig, og en linje, der starter med !, køres som en shellkommando.
Privatliv
Udvidelsen opretter ingen netværksforbindelser og sender ingen telemetri. Den starter Odincode-CLI'en, som kun taler med
Odincode.ai. Den eneste undtagelse er installationskommandoen, som kun kører, når du vælger Installér, synligt i en
terminal. Din editor kan have sine egne onlinefunktioner; dem styrer Odincode ikke.
I Remote SSH, WSL og containere kører udvidelsen der, hvor dine filer er, og bruger den CLI, der er installeret dér. I
en dev container eller Codespace definerer repositoriet containeren: dens programmer og dens indstillinger, også
odincode.cliPath. Dér viser Odincode, hvilket program den vil starte, og spørger før hvert login.
Udvidelsen opdateres kun, når du installerer en ny version: hent den på https://odincode.ai/download.