Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Azure DevOps PR ViewerNew to Visual Studio Code? Get it now.
Azure DevOps PR Viewer

Azure DevOps PR Viewer

John C. Waters

| (0) | Free
View all Pull Requests across your entire Azure DevOps organization in one place
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Azure DevOps PR Viewer

View all Pull Requests across your entire Azure DevOps organization in one place, directly within VS Code.

Features

  • Organization-Wide View: Automatically discovers and displays ALL pull requests across your entire organization
  • Modern Authentication: Uses Microsoft Entra ID OAuth via VS Code's built-in authentication
  • Flexible Views:
    • Sort by Age (oldest first) - perfect for finding stale PRs
    • Group by Project/Repository - organized hierarchical view
  • Smart Filtering: Filter by specific projects
  • Rich Information: Author, age, status, reviewers, and more
  • Auto-Refresh: Configurable automatic updates
  • Click-to-Open: Single click opens PR in browser
  • Visual Indicators: Icons for draft PRs, approval status, etc.
  • Inline PR Comments: Add comments directly to specific lines in PR diffs without needing local checkout
  • PR File Viewer: View and diff PR files directly from Azure DevOps

Quick Start

1. Configure Your Organization

  1. Look for the Azure DevOps icon in the Activity Bar (left sidebar)
  2. Click the gear icon (⚙️) at the top
  3. Enter your organization name (e.g., myorg from dev.azure.com/myorg)

2. Sign In with Microsoft Account

  1. Click "Sign in to Azure DevOps" button
  2. VS Code will prompt you to sign in with your Microsoft account
  3. Approve the Azure DevOps permissions when requested
  4. Your authentication is handled securely by VS Code

🎉 Done! Your PRs should now be loading.

Note: This extension uses Microsoft Entra ID OAuth authentication via VS Code's built-in authentication provider. This is the same authentication used by other Azure extensions and integrates seamlessly with your existing Microsoft account.

Extension Settings

This extension contributes the following settings:

  • azureDevOpsPRViewer.organization: Azure DevOps organization name (e.g., 'myorg' from dev.azure.com/myorg)
  • azureDevOpsPRViewer.autoRefreshInterval: Auto-refresh interval in seconds (0 to disable, default: 300)
  • azureDevOpsPRViewer.maxPRsToFetch: Maximum number of PRs to fetch per project (default: 500)
  • azureDevOpsPRViewer.enableInlineComments: Enable inline comment CodeLens in PR diff views (default: true)
  • azureDevOpsPRViewer.codeLensInterval: Show 'Add Comment' CodeLens every N lines (default: 1)

Commands

  • Refresh Pull Requests: Manually refresh the PR list
  • Sign in to Azure DevOps: Authenticate with your Microsoft account
  • Sign out from Azure DevOps: Clear authentication
  • Refresh Authentication Token: Get a fresh OAuth token (useful if you get 401 errors)
  • Configure Azure DevOps Organization: Set your organization name
  • Sort by Age: Show oldest PRs first
  • Sort by Project/Repo: Group PRs hierarchically
  • Filter by Project: Show PRs from specific projects only
  • View Pull Request: Open PR details and file changes in VS Code
  • Add PR Comment to Line: Add inline comments to specific lines in PR diffs

Usage Tips

Find Stale PRs

  1. Click the sort icon
  2. Select "Sort by Age"
  3. Oldest PRs show first

Group by Project

  1. Click the sort icon
  2. Select "Sort by Project/Repo"
  3. Hierarchical view: Project → Repo → PRs

Filter by Project

  1. Click the filter icon
  2. Select a project from the list
  3. Select "All Projects" to clear filter

Auto-Refresh

Set PRs to refresh automatically every 5 minutes:

  1. Open Settings (Ctrl+,)
  2. Search "Azure DevOps PR Viewer"
  3. Set "Auto Refresh Interval": 300 (seconds)

View and Comment on PR Files

View PR Details:

  1. Right-click on any PR in the tree view
  2. Select "View Pull Request"
  3. See PR description, file changes, and existing comments

Add Inline Comments to PR Diffs:

  1. Click on any file in the PR viewer to open the diff
  2. In the diff view, you'll see "Add Comment" CodeLens on each line
  3. Click "Add Comment" on the line you want to comment on
  4. Enter your comment text
  5. The comment is posted directly to Azure DevOps

Alternative: Context Menu

  • Right-click in any PR diff file
  • Select "Add PR Comment to Line"
  • Works with virtual PR files (no local checkout needed)

Features:

  • Works on both sides of the diff (original and modified)
  • No need to have the repository checked out locally
  • Comments appear immediately in Azure DevOps
  • Supports added, modified, and deleted files
  • CodeLens can be configured or disabled in settings

Troubleshooting Authentication Errors

401 Unauthorized Errors:

  1. Click the refresh icon (🔄) in the toolbar to get a fresh token
  2. Or run the command: "Refresh Authentication Token"
  3. Make sure you're signed into VS Code with the correct Microsoft account that has access to your Azure DevOps organization

Permission Errors:

  • Ensure your Microsoft account has access to the Azure DevOps organization
  • Check that your organization is connected to Microsoft Entra ID (Azure AD)
  • You may need to approve the Azure DevOps permissions in the VS Code authentication dialog

Release Notes

1.0.0

Initial release of Azure DevOps PR Viewer

  • Organization-wide PR discovery
  • Microsoft Account authentication
  • Multiple view modes (age, project/repo)
  • Project filtering
  • Auto-refresh
  • Rich PR information with tooltips

Enjoy!

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft