Skip to content

A VS Code extension that lets you hover over an import path to preview the file’s contents with syntax highlighting; configurable preview lines, click-to-open, and more.

License

Notifications You must be signed in to change notification settings

0xDaniiel/vscode-import-hover-preview

Repository files navigation

Version Installs Rating

VS Code Import Hover Preview

A VS Code extension that lets you hover over an import path to instantly preview the file’s contents — with syntax highlighting, configurable preview lines, and a click-to-open option.


✨ Features

Feature Description
Hover Preview Instantly see file contents on hover
Syntax Highlighting Readable previews with keyword coloring
Configurable Lines Show 5, 10, 20+ lines as you prefer
Click-to-Open Open the file directly from tooltip

🚀 Installation

  1. Download from the VS Code Marketplace
  2. Or clone and install locally:
git clone https://github.com/0xDaniiel/vscode-import-hover-preview.git
cd vscode-import-hover-preview
npm install

📖 Usage

  1. Hover over any import path (e.g., import x from './file.js').
  2. A tooltip will appear with the file’s preview.
  3. Click inside the tooltip to open the file fully.

🎥 Demo

Hover Preview Demo

🛠 Configuration

  • importHoverPreview.previewLines — Number of lines to show (default: 10).

📜 License

ISC

About

A VS Code extension that lets you hover over an import path to preview the file’s contents with syntax highlighting; configurable preview lines, click-to-open, and more.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published