Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>floating hover infoNew to Visual Studio Code? Get it now.
floating hover info

floating hover info

noname

|
1 install
| (0) | Free
floating hover info
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Floating Hover Info

A Visual Studio Code extension that displays hover information in a floating window. This extension allows you to view hover information (such as type definitions, documentation, and function signatures) in a separate, persistent window that stays visible while you navigate through your code.

Features

  • Display hover information in a dedicated floating window
  • Real-time updates as you move your cursor
  • Markdown rendering with syntax highlighting
  • Persistent window that remains visible while coding
  • Clean and modern UI that matches VS Code's theme
  • Support for all languages with hover providers

Usage

  1. Open any code file in VS Code
  2. Use the keyboard shortcut to open the floating hover window:
    • Windows/Linux: Ctrl+Alt+H
    • macOS: Cmd+Alt+H
  3. The hover window will appear in a separate window
  4. Move your cursor in the editor to see hover information update in real-time

Example

// Move cursor over any symbol
const myVariable = 42;  // Hover shows: const myVariable: 42

// Function documentation appears in floating window
function calculateSum(a: number, b: number): number {
    return a + b;
}

// Type information and documentation
interface User {
    name: string;
    email: string;
}

How It Works

  1. Activation: Triggered by keyboard shortcut or command
  2. Window Creation: Opens a webview panel in a new window
  3. Cursor Tracking: Monitors cursor position changes in the active editor
  4. Information Retrieval: Fetches hover information from VS Code's hover providers
  5. Real-time Updates: Automatically updates the floating window content

Supported Features

  • Syntax Highlighting: Code blocks are automatically highlighted
  • Markdown Support: Full markdown rendering including:
    • Headers and text formatting
    • Code blocks with language-specific highlighting
    • Tables and lists
    • Links and references
  • Theme Integration: Respects VS Code's current color theme
  • Smooth Transitions: Fade-in animations for content updates

Commands

  • floatingHoverInfo.view: Open the floating hover information window

Keyboard Shortcuts

Platform Shortcut
Windows/Linux Ctrl+Alt+H
macOS Cmd+Alt+H

Requirements

  • Visual Studio Code version 1.104.0 or higher
  • Language extensions that provide hover information (most language extensions include this)

Installation

  1. Open VS Code
  2. Go to Extensions (Ctrl+Shift+X)
  3. Search for "Floating Hover Info"
  4. Click Install

UI Features

  • Live Badge: Indicates real-time connection status
  • Empty State: Helpful message when no hover information is available
  • Responsive Design: Adapts to window resizing
  • Custom Scrollbar: Styled to match VS Code theme

Known Limitations

  • Hover information depends on language server capabilities
  • Some complex hover content may not render perfectly
  • Window position resets when VS Code restarts

Tips

  • Keep the floating window on a second monitor for constant reference
  • The window maintains context even when switching between files
  • Use alongside VS Code's built-in hover feature for maximum productivity
  • Resize and position the floating window to your preferred setup

Troubleshooting

Window doesn't appear:

  • Ensure you're using the correct keyboard shortcut
  • Check that you have an active text editor open
  • Try using the command palette: Floating Hover Info: Show

No hover information displayed:

  • Verify that the language extension for your file type is installed
  • Ensure the cursor is positioned over a symbol with available information
  • Some elements may not have hover information available

Release Notes

1.0.0

  • Initial release
  • Real-time hover information display
  • Floating window support
  • Markdown rendering with syntax highlighting
  • Theme integration
  • Keyboard shortcut support

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This extension is licensed under the MIT License.

Acknowledgments

  • Uses marked for Markdown parsing
  • Syntax highlighting powered by highlight.js
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft