God Code for VS Code
Language support for God Code. The spiritually-inspired programming language.
Syntax highlighting, smart indentation, snippets, and one-key running of .god / .godcode files.
Features
- 🌈 Full syntax highlighting for God Code (creation blocks, spirit commands, control flow, built-ins)
- ✍️ Snippets:
creation, declare, intent, consult, anchor, reveal, breathe, if, for, while, rite, invoke, testify, seal, import, bless, prophesy, plus Setswana and isiZulu blocks
- ▶️ God Code: Run Current File (
Ctrl+Alt+R / Cmd+Alt+R). Runs the open file and shows output in the God Code panel
- ✔️ God Code: Check Syntax of Current File. Parses without executing
- 💬
# line comments, auto-closing brackets and quotes, smart indent/dedent
Requirements
The God Code interpreter (Python 3.10+):
pip install godcode-engine
Install this extension
Option A: from the Visual Studio Marketplace (recommended)
Install God Code for VS Code from the Marketplace:
https://marketplace.visualstudio.com/items?itemName=alakanani.godcode
Then install the interpreter (Python 3.10+):
pip install godcode-engine
Option B: from source
- Copy the
editors/vscode folder to ~/.vscode/extensions/godcode
- Reload VS Code.
.god files light up immediately
Option C: package it
npm install -g @vscode/vsce
cd editors/vscode && vsce package
# then: code --install-extension <the .vsix file vsce produced>
Try it
Create hello.god:
BEGIN CREATION
DECLARE seeker AS "world"
BREATHE life INTO seeker
REVEAL("Hello, " + seeker)
ASCEND
END CREATION
Press Ctrl+Alt+R and watch it ascend.
Language server (coming next) 🕊
God Code now ships a language server: godcode lsp serves the
Language Server Protocol
over stdio. Live diagnostics from the real parser, hover scripture for
every keyword and built-in, and completions. See docs/lsp.md
for the protocol coverage table and editor setup.
Adoption plan for this extension: in a future release the extension
will spawn godcode lsp as its language server (via
vscode-languageclient), routing diagnostics, hover, and completions
through it while keeping the TextMate grammar for highlighting. Until
then, you can point any generic LSP client extension at the
godcode lsp command today.
"You are not a coder. You are a creator."
Alakanani Itireleng