Xournal++ Sync for VS Code
Author: Kaiky Vinicius dos Santos ✨ Features
🚀 Quick Start1. Install Xournal++
2. Install Extension
3. Configure (if needed)The extension auto-detects Xournal++ from PATH and default install locations. If not found:
4. Use It!
📖 Usage GuideCreating a New Note
Editing Workflow
Viewing Notes in VS Code
Tree View (Sidebar)The "Xournal++ Notes" view shows:
⚙️ Configuration
Example
|
| Command | Palette Title | Keybinding | Context Menu |
|---|---|---|---|
xournalpp.openInXournalpp |
Open in Xournal++ | — | .xopp, .pdf |
xournalpp.createNewNote |
Create New Note | — | — |
xournalpp.exportToPdf |
Export to PDF | — | .xopp |
xournalpp.exportAllToPdf |
Export All Notes to PDF | — | — |
xournalpp.searchAndOpen |
Search and Open Note | — | — |
xournalpp.renameNote |
Rename Note (XOPP + PDF) | — | .xopp |
xournalpp.deleteNote |
Delete Note (XOPP + PDF) | — | .xopp |
xournalpp.openPdf |
Open Corresponding PDF | — | .xopp, .pdf |
xournalpp.configurePath |
Configure Xournal++ Path | — | — |
🔧 How It Works
┌─────────────┐ Save ┌──────────────┐ Export ┌─────────┐
│ Xournal++ │ ───────────▶ │ .xopp file │ ─────────────▶ │ .pdf │
│ (editing) │ │ (gzipped XML)│ (xournalpp │ (viewer)│
└─────────────┘ └──────────────┘ --create-pdf) └─────────┘
▲ │ │
│ ▼ ▼
└────────────────────── Auto-sync ◀────────────── VS Code
(FileSystemWatcher)
- File Watcher monitors
**/*.xoppfor changes - On save/create, runs
xournalpp --create-pdf=out.pdf in.xopp - Debounced (500ms) to handle rapid saves
- Concurrent limit (5) prevents system overload
- Retries (3x) with exponential backoff on failure
📁 Supported Formats
| Format | Read | Write | Preview |
|---|---|---|---|
.xopp |
✓ (via Xournal++) | ✓ (create) | — |
.pdf |
✓ (VS Code) | ✓ (export) | ✓ (built-in) |
🐛 Troubleshooting
"Xournal++ not found"
- Install Xournal++ and restart VS Code
- Or set
xournalpp.sync.executablePathto full executable path - Windows:
C:\Program Files\Xournal++\xournalpp.exe - Linux/macOS:
which xournalpp→ copy path
Export fails silently
- Check Output panel → Xournal++ Sync for logs
- Ensure Xournal++ CLI works:
xournalpp --create-pdf=test.pdf your-note.xopp - Increase timeout for large files (not yet configurable)
PDF doesn't update
- Run Export to PDF manually
- Check file permissions on workspace folder
- Verify
.xoppand.pdfare in same directory
Tree view doesn't appear
- Open a workspace folder containing
.xoppfiles - Run Refresh from Tree View title bar
🤝 Contributing
- Fork the repo
- Create feature branch:
git checkout -b feature/amazing-feature - Commit changes:
git commit -m 'Add amazing feature' - Push:
git push origin feature/amazing-feature - Open Pull Request
Development Setup
git clone https://github.com/kaikyvinicius/vscode-xournalpp-sync.git
cd vscode-xournalpp-sync
npm install
npm run compile
# Press F5 in VS Code to launch Extension Development Host
📝 Changelog
1.0.0 (Initial Release)
- Auto-export
.xopp→.pdfon save/create - Full CRUD: Create, Read, Update (rename), Delete (both files)
- Search & Open with fuzzy matching
- Tree View with PDF status indicators
- Context menus for
.xoppand.pdffiles - Configurable Xournal++ path, export flags, templates
- Cross-platform: Windows, Linux, macOS
🙏 Credits
- Xournal++ — Amazing handwriting app by xournalpp/xournalpp
- Obsidian Xournal++ Plugin — Inspiration by jonjampen/obsidian-xournalpp
- VS Code Extension API — By Microsoft
- Author — Kaiky Vinicius dos Santos
📄 License
MIT License — see LICENSE for details.
💬 Support
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Xournal++ Issues: xournalpp/xournalpp
Made with ❤️ for handwritten notes lovers
If this helps you, consider ⭐ starring the repo!
If this helps you, consider ⭐ starring the repo!