Live preview extension for gtext documents.
- Live Preview: Open preview in VSCode with auto-refresh
- Side-by-Side: View source and preview side-by-side
- Auto-Refresh: Preview updates automatically when you save the file
- Error Display: Shows errors directly in the preview
- gtext with serve support installed:
pip install 'gtext[serve]'
- Open a
.gtextfile in VSCode - Click the preview icon in the editor title bar
- Or use Command Palette:
gtext: Open Preview
gtext: Open Preview- Open preview in current columngtext: Open Preview to the Side- Open preview side-by-sidegtext: Stop Preview Server- Stop the preview server
gtext.preview.port- Port for preview server (default: 8080)gtext.preview.autoRefresh- Auto-refresh on file changes (default: true)
The extension:
- Detects
.gtextfiles - Launches
gtext servein the background - Shows the preview in a VSCode webview
- The preview auto-refreshes via
gtext serve's polling mechanism
# Install dependencies
npm install
# Compile
npm run compile
# Watch mode
npm run watch
# Run extension
# Press F5 in VSCode to open Extension Development HostMIT License - see LICENSE for details.
- gtext: github.com/genropy/gtext
- PyPI: pypi.org/project/gtext