Programming

New VS Code Python Extension: Smarter Symbol Search and Faster Indexing

2026-05-11 22:27:41

Introduction

The March 2026 release of the Python extension for Visual Studio Code brings two powerful enhancements designed to accelerate your development workflow. Whether you're navigating unfamiliar codebases or waiting for IntelliSense to catch up, these updates aim to make your experience smoother and more efficient. Let's dive into the key features.

New VS Code Python Extension: Smarter Symbol Search and Faster Indexing
Source: devblogs.microsoft.com

When you're working with a new project or exploring an unfamiliar library, quickly finding where a function or class is defined can be a challenge — especially when the code lives outside your workspace. In this release, Pylance extends its Workspace Symbol search (accessible via Cmd/Ctrl+T) to include symbols from packages installed in your active virtual environment.

How It Works

This feature is controlled by a new setting: Python › Analysis: Include Venv In Workspace Symbols. When enabled:

Performance Considerations

Because indexing installed packages can affect performance, this feature is opt-in by design. You can fine-tune the depth of indexing per package using Python › Analysis: Package Index Depths. This setting controls how deeply Pylance searches into sub-modules, allowing you to balance richness of exploration with responsiveness.

How to Try It

  1. Open Settings (Cmd+, on macOS / Ctrl+, on Windows/Linux).
  2. Search for "Include Venv In Workspace Symbols".
  3. Check the box under Python › Analysis.

This gives you richer code exploration when you need it, without changing the default experience for everyone else.

New VS Code Python Extension: Smarter Symbol Search and Faster Indexing
Source: devblogs.microsoft.com

Experimental: Rust-Based Parallel Indexer

We're shipping an experimental setting that switches Pylance's indexer — the engine behind completions, auto-imports, and workspace symbol search — to a new Rust-based parallel implementation that runs out-of-process. In internal testing, this indexer is on average 10× faster on large Python projects. This means faster completions after opening a workspace and a more responsive IntelliSense experience overall.

Configuration

The setting is found at Python › Analysis: Enable Parallel Indexing. It is intentionally marked as experimental. We want to validate performance gains and reliability across the wide variety of project setups and environments before making it the default.

How to Enable

  1. Open Settings (Cmd+, / Ctrl+,).
  2. Search for "Parallel Indexing".
  3. Check Enable Parallel Indexing (Experimental) under Python › Analysis.

Alternatively, add this to your settings.json:

"python.analysis.enableParallelIndexing": true

After enabling, reload VS Code (Cmd/Ctrl+Shift+PReload Window) to ensure the new indexer starts cleanly. This setting has the most impact on larger projects — small projects may see little difference.

We Want Your Feedback

If you try it and notice faster completions, slower behavior, or any issues, please share your experience. Your feedback will help shape the future of this feature.

Conclusion

The March 2026 release of the Python extension for VS Code brings two notable improvements: enhanced workspace symbol search that includes installed packages, and an experimental Rust-based parallel indexer for significantly faster performance. Both features are opt-in, allowing you to decide when to trade off indexing breadth or speed for your specific needs. We look forward to your feedback and continued improvements in future releases.

Explore

Mathematicians Clash Over Final Axiom: Is the Foundation of Math at Risk? Navigating the New Era of Feature Overload: A Product Manager's Guide How to Understand Nissan's Pivot to Gas-Powered Trucks in America Spotify Reveals Cutting-Edge Tech Powering 2025 Wrapped: How AI Spots Your Year’s Most Meaningful Listening Moments Kubernetes v1.36 Alpha: Pod-Level Resource Managers for Smarter Resource Allocation