A lightweight, read-only viewer for PDF and Word (.docx) files. Open either format directly in Visual Studio Code to read it offline.
Open a document
Open a .pdf or .docx file from the VS Code Explorer. If it opens with another editor, right-click the tab, choose Reopen Editor With…, and select PDF Viewer or Word (DOCX) Viewer.
The viewer automatically refreshes when the file changes on disk and preserves your reading position.
PDF navigation and search
Go to a page by entering its number in the toolbar and pressing Enter.
Search the whole PDF by clicking Find or pressing Ctrl+F (Cmd+F on macOS) while the preview has focus. Enter your search text and use Find next or Previous to move between highlighted matches. Search requires a text layer. Image-only scans need OCR before their text can be searched.
Unlock a protected PDF by entering its password when prompted. If the password is incorrect, you can try again or cancel.