Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Context WindowNew to Visual Studio Code? Get it now.
Context Window

Context Window

zhiminxiong

|
81 installs
| (0) | Free
Display full code context in the panel, similar to the context window in Source Insight.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Context Window

VS Code extension that displays the full code context of the current symbol in the sidebar or panel, similar to the context window in Source Insight.

Special Thanks To

This extension is adapted/modified from Definition View: https://github.com/stevepryde/vscode-def-view.git

Special thanks go to all contributors of Definition View. It made creating this extension much easier!

Please check out that extension if you just want documentation in the panel or sidebar.

Features

  • Like Source Insight, it automatically displays the context of the code at the cursor position.
  • Language independent. Works in any language.
  • The "Context" view shows in the panel by default. Move to other views or the panel just by dragging.
  • Supports syntax highlighting in the context view.

Configuration

  • contextView.contextWindow.updateMode — Controls how the documentation view is updated when the cursor moves. Possible values:

    • live — (default) The context always tracks the current cursor position.
    • sticky — The context tracks the current cursor position. However if there is no symbol at the current position, it continues showing the previous context.

Commands

  • Pin current def — Stop live updating of the context view. Keeps the currently visible context.
  • Unpin current def — Make the context view start tracking the cursor again.
  • Show Context Window — Show context view by Keyboard Shortcuts.

Build

  • npm install
  • vsce package
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft