Installation
How to install the ChapterWise Codex VS Code extension
Installing the ChapterWise Codex Extension
This guide walks you through installing the ChapterWise Codex extension in VS Code or Cursor.
Prerequisites
The extension works with both:
- Visual Studio Code — Version 1.85.0 or later
- Cursor — All versions supported
Both editors provide identical functionality. Choose whichever you prefer for your workflow.
Installation Methods
Option 1: Install from VSIX File
If you have a .vsix package file:
VS Code
- Open VS Code
- Open the Command Palette (
Cmd+Shift+Pon Mac,Ctrl+Shift+Pon Windows/Linux) - Type "Install from VSIX" and select Extensions: Install from VSIX...
- Navigate to and select the
chapterwise-codex-x.x.x.vsixfile - Click Install
- Reload the window when prompted
Cursor
- Open Cursor
- Open a terminal (
Cmd+``orCtrl+``) - Run the following command:
cursor --install-extension /path/to/chapterwise-codex-x.x.x.vsix --force
- Reload the window (
Cmd+Shift+P→ "Reload Window")
Option 2: Build from Source
If you have the source code:
# Navigate to the extension directory
cd chapterwise-codex
# Install dependencies
npm install
# Compile TypeScript
npm run compile
# Package the extension
npm run package
# Install in VS Code
code --install-extension chapterwise-codex-0.1.0.vsix --force
# Or install in Cursor
cursor --install-extension chapterwise-codex-0.1.0.vsix --force
Option 3: VS Code Marketplace (Coming Soon)
The extension will be available on the VS Code Marketplace in a future release. Once published, you'll be able to:
- Open the Extensions view (
Cmd+Shift+X/Ctrl+Shift+X) - Search for "ChapterWise Codex"
- Click Install
Verifying Installation
After installation, verify the extension is working:
1. Check Extensions List
Open the Extensions view and search for "ChapterWise". You should see the extension listed as installed.
2. Open a Codex File
Create or open a file with .codex.yaml or .codex.json extension. You should see:
- Syntax highlighting — YAML/JSON with Codex-aware colors
- Tree view — A "Codex Structure" panel in the Explorer sidebar
- Validation — Any errors will appear as squiggly underlines
3. Test the Command Palette
- With a Codex file open, press
Cmd+Shift+P/Ctrl+Shift+P - Type "ChapterWise" to see available commands:
- ChapterWise Codex: Explode Codex
- ChapterWise Codex: Implode Codex
- ChapterWise Codex: Update Word Count
- ChapterWise Codex: Generate Tags
- ChapterWise Codex: Open Writer's View
Troubleshooting
Extension Not Activating
The extension only activates for .codex.yaml and .codex.json files. Make sure your file has the correct extension.
Tree View Not Showing
- Open the Explorer sidebar (
Cmd+Shift+E/Ctrl+Shift+E) - Look for the "Codex Structure" section
- If collapsed, click to expand it
- Make sure you have a valid Codex file open
Validation Not Working
The extension validates against the Codex schema. If validation isn't working:
- Ensure the file is saved
- Check the Problems panel (
Cmd+Shift+M/Ctrl+Shift+M) for errors - Verify the file has valid YAML/JSON syntax
Commands Not Available
Commands only appear when a Codex file is the active editor. Open a .codex.yaml or .codex.json file first.
Updating the Extension
To update to a newer version:
- Download or build the new
.vsixfile - Follow the installation steps above
- The
--forceflag will replace the existing version
Uninstalling
VS Code / Cursor
- Open the Extensions view
- Find "ChapterWise Codex"
- Click the gear icon and select Uninstall
- Reload the window
Or via command line:
# VS Code
code --uninstall-extension chapterwise-codex
# Cursor
cursor --uninstall-extension chapterwise-codex
Next: Learn about all the Features available in the extension.