A popular PostScript and EPS file previewer for Visual Studio Code β Preview, pan, zoom, and debug your
.psand.epsfiles directly in VS Code. Supports multi-page documents, GhostScript console output, custom themes, and more.
- Live Preview β View EPS and PS files side-by-side with your code
- Pan & Zoom β Smooth SVG-based pan and zoom controls
- Multi-Page Support β Navigate through multi-page PostScript documents
- Theme Support β Automatic light/dark mode matching VS Code theme
- Background Color Picker β Customize preview background color
- Console Output β View GhostScript output (from
==,print, etc.) - Custom Paths β Configure paths to GhostScript and Poppler tools
- Auto-Refresh β Preview updates automatically when you save
- Install this extension from the VS Code Marketplace
- Install GhostScript and Poppler
- Open any
.psor.epsfile - Click the preview icon in the editor title bar
This extension requires:
- PostScript Language extension for syntax highlighting
- GhostScript (provides
ps2pdf) - Poppler (provides
pdftocairoandpdfinfo)
brew install ghostscript popplersudo apt-get install ghostscript poppler-utils -yInstall via Chocolatey (run as Administrator):
choco install ghostscript --version 9.55.0 --force -y
choco install poppler --version 0.89.0 -y --forceAdd to PATH:
[Environment]::SetEnvironmentVariable("Path",[Environment]::GetEnvironmentVariable("Path", [EnvironmentVariableTarget]::Machine) + ";C:\Program Files\gs\gs9.55.0\lib;C:\Program Files\gs\gs9.55.0\bin;C:\ProgramData\chocolatey\lib\poppler\tools",[EnvironmentVariableTarget]::Machine)Restart VS Code after installation.
Manual PATH setup
If you have issues setting PATH, add these manually via System Properties β Environment Variables:
C:\Program Files\gs\gs9.55.0\lib
C:\Program Files\gs\gs9.55.0\bin
C:\ProgramData\chocolatey\lib\poppler\tools
Configure custom executable paths in VS Code settings (useful for conda environments or non-standard installations):
| Setting | Description | Default |
|---|---|---|
postscript-preview.path.ps2pdf |
Path to ps2pdf executable | ps2pdf |
postscript-preview.path.pdftocairo |
Path to pdftocairo executable | pdftocairo |
postscript-preview.path.pdfinfo |
Path to pdfinfo executable | pdfinfo |
Example settings.json:
{
"postscript-preview.path.ps2pdf": "/opt/ghostscript/bin/ps2pdf",
"postscript-preview.path.pdftocairo": "/opt/poppler/bin/pdftocairo"
}For PostScript files with multiple showpage commands, navigation controls appear automatically:
- β / βΆ β Navigate between pages
- Page input β Jump to a specific page
The preview resets to page 1 when the source file is modified.
View GhostScript output in VS Code:
- Open Output panel (
Ctrl+Shift+U/Cmd+Shift+U) - Select "PostScript-Preview" from the dropdown
- Output from
==,print, and other operators will appear here
None currently. Report issues here.
- mkvoya/eps-preview β Original base extension
- svg-pan-zoom β Pan and zoom library
- pickr β Color picker library
See TESTING.md for local development instructions.
yarn install
yarn compile
# Press F5 in VS Code to launch Extension Development Hostβ If you find this extension useful, please star the repo and leave a review!


