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

Context Window

zhiminxiong

|
305 installs
| (3) | 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

feature

  • 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.

feature2

  • Floating windows are supported—you can trigger them via a keyboard shortcut or by right-clicking and selecting "Float".

tokenStyle

  • When useDefaultTokenizer is disabled, add a context-menu option to apply a style to the token under the cursor.

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.
  • contextView.contextWindow.useDefaultTokenizer — Using the default tokenizer of Monaco Editor
    • Checked by default to use the default tokenizer.
    • When unchecked, the custom tokenizer will be used—primarily for token highlighting—and it must be used together with lightThemeRules or darkThemeRules.
  • contextView.contextWindow.lightThemeRules — Color rules for the light theme
    • Default colors are provided—modify them as needed; leaving the fields empty will fall back to the default tokenizer.

Commands

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

Build

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