Skip to content
| Marketplace
Sign in
Visual Studio Code>AI>Content MentorNew to Visual Studio Code? Get it now.
Content Mentor

Content Mentor

Microsoft

|
1,415 installs
| (0) | Free
Content Mentor (formerly known as DocuMentor) is an internal Microsoft AI-assisted tool to author and publish content on Microsoft platforms. It helps internal content creators improve their documentation with AI-powered suggestions, content conversion, and best practices.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Content Mentor VS Code Extension

Content Mentor is a Visual Studio Code extension that provides AI-powered assistance for authoring, editing, and managing Markdown and YAML content, especially for Microsoft Learn and documentation scenarios. It integrates with GitHub Copilot Chat and offers a wide range of productivity features for content creators.

Key Features

  • AI Chat Participant: Adds a @content-mentor chat participant to Copilot Chat, providing domain-specific help for documentation tasks.
  • Content Suggestions: Use AI to suggest quick or detailed edits, improvements based on customer feedback, and engagement or SEO enhancements.
  • Metadata Generation: Automatically generate or update metadata such as title, description, customer intent, and ms.date fields.
  • Markdown Auto-Fix: One-click command to automatically fix common Markdown formatting issues (lists, images, tables, links, alerts, spacing, and more) with customizable rules.
  • Link Validation: Detect and validate all links in documents, checking for broken URLs, timeouts, and redirects with detailed reporting. Absolute Learn link warnings in Run Checks and Link Validation show a suggested replacement with Apply fix and Copy link. Apply fix replaces only that occurrence's URL, preserves the link label and title, and refreshes the checks. It selects and reveals the replacement in the article's existing editor group while keeping keyboard focus in the results. The edit supports Undo and does not save the article. Apply fix is offered only when the URL can be replaced without breaking the existing syntax; angle-bracket autolinks retain Copy guidance only. If the article has changed since checking, refresh the results before applying a fix. Suggestions prefer a verified source-file-relative link in the same docset, otherwise a site-relative published path. Like Auto Fix Markdown, resolution uses published docset metadata when the publishing config omits the URL base path; docset names need not match published URL prefixes. Production and review Learn URLs are supported; locale and preview-branch parameters are removed while anchors and other query parameters are preserved. Copying does not modify the article.
  • Word to Markdown Conversion: Convert Word documents (.docx) to Markdown directly within VS Code.
  • Table of Contents (TOC) Management: Visual TOC tree view for managing documentation structure, including adding, moving, and deleting TOC items.
  • Redirects and File Management: Easily create redirects, move files with automatic redirect creation, and find unreferenced files.
  • Verify Against UI: Automatically verify documentation against live portal UIs -- an AI agent walks through article steps in the browser, compares text and screenshots, scrubs PII, and draws callout annotations.
  • Generate Doc Set (preview): Draft a full set of related articles for a new product from local source code in one workflow. The agent proposes an article lineup (audience, per-article topic type, sections, rationale); you iterate the plan in plain English, then approve to write the whole set in one go. Each article is built in its own fresh Copilot session so cancel and retry stay clean.
  • Feedback Integration: View and send feedback, including UUF (User Update Feedback) integration.
  • Prompt Library: Access a library of reusable prompts for common documentation tasks.
  • Social Media Suggestions: Generate content suggestions for social media sharing.
  • Keyboard Shortcuts: Quickly manage TOC items and other features with built-in keybindings.

When a Word or PowerPoint import is blocked by encryption or sensitivity label restrictions, the article setup form shows a persistent error alert and scrolls it into view. Select Learn more in the alert for the import prerequisites.

Screenshot scrubbing (including PII scanning and automatic placement of scrub regions), scrubbed screenshot capture, image text search, short links, and the sidebar AI edit field no longer require Show preview features. Scrubbed screenshot capture remains desktop-only. Image text search also requires desktop and is unavailable in Repo Workspace mode. The sidebar AI edit field remains web-only and requires an open article and the AI edit field visibility preference to be enabled.

Documentation

  • Content Mentor
  • Videos

Check licensing guidance (preview)

With your Content Mentor organization set to CAP and Show preview features enabled, open Licensing checker. Choose workspace Markdown articles, or select Paste text to review plain text or Markdown without creating a file. Pasted text reviews also work without an open workspace folder, on desktop and web. If the current article is preselected, choose Review current article beside its name. To select a range while browsing or searching, click the first article, then Shift-click the last. Only visible articles are added, up to 50.

Select Review text to see findings and recommended changes, then use Copy report to copy the results. Edit or review more text returns to the input with your text preserved while the panel stays open. For a not-allowed result, choose Generate suggested edits, then Review suggested edits. If generation fails, select the failed result and choose Retry generation to retry just that result without regenerating the others. For pasted text, this opens an unsaved Markdown document with the original text and the same Edit Suggestions panel used for articles. Review and apply the edits, then copy the revised text from the document or save it yourself. Nothing is saved automatically, and the original pasted input remains unchanged. Finish or close the suggestion panel before regenerating. If you have edited the unsaved document, copy the revised text into Paste text and review it again. Closing or saving that document closes its suggestion panel; reopening the licensing suggestions restores the original reviewed text in a new unsaved document.

The AI-generated findings use CELA-approved licensing guidance but may be inaccurate. Validate findings with the appropriate stakeholders. They do not constitute CELA approval or supersede Microsoft policies.

Open, review, and submit an article

Use Open to paste an article URL. Repository and existing-PR entry points remain available under the dialog's advanced options.

When you paste an article URL into Open existing files or the workspace file search, Content Mentor first looks in the current branch. If the file is missing, it checks the matching upstream repository. When upstream has the article and your fork's branch is missing upstream changes, Update branch and open article offers to sync the fork's base and merge it into the working branch. Nothing is updated until you choose that action. Save and commit or discard local edits first; merge conflicts are reported without resetting your branch. If the virtual workspace still has cached files after updating, choose Reload and open article. For a workspace opened without an explicit branch, Reopen branch and open article mounts the verified branch explicitly so the article can reopen. Once started, a branch update continues even if you close the file picker. Its progress and final result also appear in VS Code notifications. If reopening is required, the notification retains the same guarded recovery action even after the picker closes. Recovery requires a single-folder workspace and a fresh, verifiable Source Control inventory. If the repository provider cannot expose that inventory, Content Mentor explains the limitation and leaves the update to Source Control or offers Open fork on GitHub for manual synchronization rather than risking local edits. This applies to web providers such as Remote Repositories that do not expose a verifiable SCM inventory. URLs for another repository offer Open in article workspace instead. If upstream access cannot be verified, Content Mentor reports that separately and does not offer a branch update.

The Your workspace heading stays the same as you switch between files. The repository appears beneath it, with branch details in the tooltip. The PR link identifies an existing submission, and the highlighted working-file row identifies the active article.

In a repository workspace, Review changes opens VS Code's built-in diff editor directly. The sidebar file list remains a navigation shortcut: selecting a file reopens it for editing without leaving Content Mentor for Explorer. Per-file review remains available in PR preparation. Comparisons show your working copy against its common starting version, including saved and unsaved edits, without staging, committing, or pushing anything. Multiple files, additions, and deletions use VS Code's multi-file diff view.

Review and submission use compact buttons that wrap when needed. In narrow sidebars, Add and Editor remain directly accessible as icon buttons with tooltips; less frequent actions move to the More menu. Update branch is available only in More, for saving changes to GitHub before creating a PR. Saved-but-unsubmitted status uses neutral styling; the green check is reserved for All changes submitted.

When a PR is up to date, All changes submitted replaces the submission button, and View submitted changes is available in More (...), leaving the PR link as the single review link in the header. This native VS Code review compares against the starting version, not the last submission. After additional edits, Review all changes includes both submitted changes and the new edits, while Update PR submits the update.

Native review verifies the working repository and branch, and includes tracked, Source Control, and unsaved editor changes without saving or reverting files. PR preparation, Update PR, and Update branch use that same pending-change inventory, so saved edits from other tabs are included even when the branch already has commits. Submission still uses the native Source Control handoff. Submission and Update branch require the working repository in its own single-folder VS Code window. Multi-root windows can show and review the matching repository's changes, but cannot submit through Content Mentor because native commit and recovery commands are not consistently scoped to a repository. If GitHub returns its 300-file comparison limit, review stops with an explicit message rather than presenting a potentially incomplete all-file review.

Choose Create PR when ready to describe your changes. Repository, branch, and contribution settings remain available under Advanced. Creating a draft PR shares the changes on GitHub but does not mark them ready for review; the form explains the selected outcome before submission. Saving an article in the editor is separate from sending it to GitHub or submitting a PR. The workspace status distinguishes unsaved edits, workspace saves, and GitHub saves.

After creation, the confirmation page and editor tab say Pull request created. The page identifies the destination repository and PR, and distinguishes draft from ready-for-review when GitHub confirms that state. View on GitHub is the primary action. Continue editing this change explains that further edits need Update PR, while Start a new change is a separate, quieter action. Updating an existing PR uses the same confirmation layout with Pull request updated in the page and tab. It confirms the update without implying a draft became ready for review. Both pages retain the confirmation if starting a new change fails, and report the error. Once GitHub creates the PR, failures saving local session metadata do not turn creation into an error or hide the confirmation. A separate warning identifies the local persistence problem.

Experimental PR conflict handoff

The PR conflict handoff is off by default and works in VS Code desktop and VS Code for the Web. To test it, enable Content Mentor: Enable PR Conflict Handoff in Settings, or add this user setting:

{
  "content-mentor.enablePRConflictHandoff": true
}

Then open an existing conflicted PR through Content Mentor, or sync a PR branch that has conflicts. A banner in Your workspace stays visible while GitHub reports conflicts. On desktop, Review and resolve is the primary action and opens Content Mentor's review-first resolver. View PR conflicts opens the details in GitHub Pull Requests. If Resolve conflicts is available there, select it to open the merge editor. The extension can show a conflict status without offering resolution, including for fork PRs in web; installation alone doesn't guarantee that action is available. Expand Other ways to resolve for concise GitHub Pull Requests, browser, and local alternatives. It stays collapsed by default unless you previously selected Show next time. Select Hide guide to collapse it, or Don't show next time to keep it collapsed in future workspaces. You can still expand it manually or select Show next time to restore it; neither choice hides the conflict banner. Confirm the host, repository, and PR number before accepting a resolution. If the same repository name exists on multiple GitHub hosts in your workspace, select Open on GitHub instead: GitHub Pull Requests can select a similarly named repository on another host. If Content Mentor can't confirm the PR's URL, refresh the workspace and try again rather than opening a guessed host. If the extension isn't installed, the banner offers Install GitHub Pull Requests, which opens its Marketplace page (Content Mentor never installs it for you), and Open on GitHub, which navigates to the PR page in your browser. GitHub's browser conflict editor isn't available for every PR or conflict type; this link doesn't guarantee a browser resolution workflow. If the GitHub Pull Requests resolution action is missing or disabled, desktop users can use the experimental Review and resolve flow below. Web users can check Open on GitHub for browser options, or use VS Code Desktop with the exact PR branch. If neither route is available, ask a maintainer to help resolve the conflict locally. Content Mentor's AI conflict review is not available in web. The banner refreshes when VS Code regains focus or extensions change; select Check again to refresh it after you resolve the conflict. If the check doesn't return or the PR lookup is inconclusive, the banner reports that the status couldn't be confirmed and lets you retry. When the setting is off, the existing branch-sync conflict warning is unchanged. Browser links are limited to GitHub.com and GitHub Enterprise Cloud (*.ghe.com). Self-hosted GitHub Enterprise Server URLs aren't supported by this handoff.

The handoff does not choose resolutions, commit changes, or merge the PR. Completing resolution in GitHub Pull Requests updates the PR branch, not the PR's merged state. This opt-in is independent of Show preview features. Turn it off to hide the banner and disable the handoff action; the existing branch-sync conflict warning remains available.

Review-first AI conflicts (experimental desktop preview)

With the same opt-in setting, Review and resolve opens Content Mentor's review panel in a desktop extension host. Fork-to-upstream PRs are supported: the fork head and upstream base repository IDs, branch refs, and commit SHAs are checked separately. Only GitHub.com is supported in this preview. Git must be installed. You can also run Content Mentor: Review PR conflicts from the Command Palette.

Desktop Repo Workspaces can use VS Code's local vscode-userdata extension storage as well as file storage; the virtual repository itself is never used as a local Git directory. Copilot model access still requires workspace trust. If VS Code reports that the workspace source cannot be verified, resolve that in VS Code and its repository provider before requesting AI proposals. Content Mentor does not grant trust or bypass Restricted Mode.

On desktop, Content Mentor shows a persistent sidebar banner when the workspace is in Restricted Mode because its Copilot-powered AI features require workspace trust. For Remote Repositories, the warning also links to the reported VS Code trust issue, which can prevent trusting a repository after switching branches. Manage Workspace Trust opens VS Code's trust management; it does not automatically trust the workspace. Both actions remain available after you select either one, and the banner disappears when workspace trust is granted. It is restored when the sidebar reloads while the workspace is still restricted. Trust guidance can be collapsed to its warning title; this choice is remembered for the workspace, including after reloading VS Code. The web-version link opens https://aka.ms/ContentMentor.

The main banner keeps the explanation brief, with trust management, the VS Code issue, and the web alternative available directly. Advanced workaround: global trust setting is collapsed by default and separates the global-setting caution from the current-workspace trust action. Inside it, Open Workspace Trust Setting opens Settings filtered to security.workspace.trust.enabled without changing it. The caution explains that turning off this setting removes Workspace Trust protection for all workspaces. This warning is not shown in VS Code for the Web, where Content Mentor's direct AI API is not affected by this restriction.

The assistant reads exact commits into a private, disposable bare Git snapshot, proves a unique ancestor, and deterministically merges text. It never checks out or changes your workspace. It refuses ambiguous or insufficient shallow history, additions, renames, deletions, mode changes, symlinks, binaries, invalid UTF-8, existing conflict markers, and files whose PR and target versions disagree about whether to end with a newline. When both current versions agree, Content Mentor preserves that file-ending state, including a consistently missing final newline. Limits are 30 modified .md, .txt, .yml, .yaml, or .json files, 256 KiB per text, 2 MiB across all input versions, 100 conflicts, and 30,000 tree entries. The bounded history fetch is 128 commits deep; some older or complex branches require manual resolution instead.

Git attributes are evaluated against each exact source tree for the modified files, with global/system attributes disabled. Ordinary text/eol rules and unrelated image/LFS rules don't reject the repository. Binary rules, filters, working-tree encodings, custom merge drivers, and other unsupported semantics on modified files are refused; no filters or external drivers are executed. For preparation failures, the panel and Output → Content Mentor identify the stage and a safe diagnostic category. Preparation failures are separate from AI proposal failures; no model request happens automatically.

The panel guides you through Review each conflict, Review all changes, and Update the PR branch with a numbered stepper and conflict progress bar. It shows one conflict at a time, with equal-choice cards for Your PR version and Latest from target branch. A selected card has a visible selected state without treating either side as recommended. Select View full file on GitHub on either card to view that exact captured commit on GitHub, anchored to the conflict lines when Content Mentor can locate them unambiguously. This avoids opening a stale workspace file or implying that the two cards show the same revision. Expand Original text before either change to see the common ancestor. Custom editing and optional Copilot help are grouped under other resolution choices. Export, repository IDs, and commit SHAs are available under More options and technical details. Only the current stage is shown. The result editor opens after you choose a version, receive a suggestion, or select Edit result.

Version-specific line ranges refer to the captured commits, not the current editor. When a conflict can be located unambiguously in an original file, expand Surrounding lines (read-only) to see up to two lines before and after it. Ambiguous or empty matches have no guessed line numbers. Surrounding context exceeding 4 KiB for a version is omitted.

Choose Keep PR version, Keep target version, or edit Text to keep in the PR. Combine both prepares an editable draft with the PR text first, followed by the target text. It does not merge the text semantically or remove duplicates. Check the ordering, duplicate text or table headers, and formatting, then select Accept result and continue. Combining does not accept the result or update the PR branch. Expand Get a suggestion from Copilot when you want AI help. Selecting Suggest with Copilot explicitly sends only that conflict's PR, target, and original versions plus the displayed bounded surrounding context, with no tools. The disclosure beside the action explains this before anything is sent. Copilot can combine compatible or complementary wording and checklist changes while preserving unique intent from each branch. It can decline to suggest text when the versions contain mutually exclusive facts or the intended result is otherwise unclear. In that case, No AI suggestion explains that a human decision is needed. An untouched result editor stays closed; any existing draft is preserved. This is not an empty-text suggestion or a request to delete the conflict. A proposal is not automatically accepted or guaranteed correct. Compare it with the originals, edit if needed, and select Accept result and continue. Choosing or accepting text only changes this private review; nonconflicting text is preserved by deterministic code. You can navigate back to change a decision. Any edit invalidates approval and any previously prepared update diff. Accepting an empty result requires a separate checkbox confirming removal of that conflicting text. No surrounding text is removed.

Export reviewed snapshot opens an untitled JSON document containing the exact identities and resolved modified files. Save explicitly if desired. This is not a patch, complete repository, or proof that the PR is resolved. Stale or unverified snapshots remain exportable with an explicit reference-only label; they cannot be used to update the branch. Export becomes available only after every conflict is explicitly accepted; the accompanying hint explains how many conflicts still need review.

After every conflict is reviewed, Prepare full review downloads complete reachable head/base history into a private bare repository. This can be substantially larger than the bounded review snapshot and can time out on large repositories. A prominent preparation card shows the current safety stage, live elapsed time, and reassurance that nothing has been sent to the PR. The assistant reconstructs and verifies the original merge, changes only the reviewed paths, verifies all required Git objects, and shows every content change from the captured head in a file-by-file view without raw Git headers. Files with a reviewed conflict are distinguished from files Git merged automatically because they contain nonconflicting target-branch or clean combined changes. Summary counts explain why the complete merge result can contain more files than the original PR changed. The destination branch and changed-file count remain visible. Within paired changed lines, the exact words that changed receive stronger emphasis so subtle edits aren't hidden by whole-line diff coloring. Reviewed conflict files are expanded by default. Files merged automatically are collapsed by default with a plain-language reason they appear; expand them to inspect the complete merge result. Disabled confirmation buttons include visible guidance and hover text explaining which checkbox enables them. Raw diff headers, the result tree, and authenticated GitHub author/committer attribution are available under Technical diff and commit details. This attribution does not imply a signed commit.

Only after both confirmation checkboxes and Update PR branch does deterministic code create a two-parent merge commit and perform a normal push to the exact head branch. It revalidates identities, head/base refs and SHAs, review revisions, and commit attribution immediately before the push. A mandatory private pre-push guard verifies the advertised old head; Git's receive-pack old-object check rejects a subsequent head race. There is no force push, branch-policy bypass, PR merge, or automatic retry. The upstream base can't be atomically locked across repositories; a post-push base change is reported and requires a fresh check. An uncertain transport outcome is reconciled with several short, read-only branch checks without retrying the push. It is reported as unknown only if the expected commit still can't be confirmed.

The workspace is never checked out or modified by this flow. Update evidence, including reviewed text, complete diff, identities, and outcome, is retained as a JSON file in Content Mentor's private extension storage. Open saved review evidence lets you inspect and save it. Content Mentor removes private conflict review evidence and abandoned preparation directories after 30 days when a new review is prepared. Closing the panel does not interrupt an already-started push or discard its evidence. Check the PR and run relevant content/build validation after an update; a branch update does not itself prove that GitHub considers the PR conflict-free. Because the merge commit is written directly to the remote PR branch, the open workspace and VS Code Source Control don't show that commit. Content Mentor labels any separate virtual-workspace edits as workspace edits and keeps them distinct from the conflict update.

GitHub's separate Copilot options

GitHub documents a one-shot Fix with Copilot action and an @copilot PR comment for resolving merge conflicts. Cloud agent responds to people with write access to the repository containing the PR. Owning the head fork does not establish that permission. By default, it pushes commits directly to the PR branch. This is review after a remote change, not Content Mentor's before-update review. GitHub's announcement of direct PR updates explicitly excluded fork PRs at launch. An available button alone does not establish that a fork PR is supported; treat this as an optional GitHub route, not a dependable fallback for fork contributors.

In the tested GitHub UI, Fix with Copilot prepares a comment and changes the submit action to Start new session. Posting similar text through the comments API is not a verified substitute. A posted comment is not proof of a running session: check for Copilot's acknowledgment and the Copilot has started work timeline event, then verify the resulting branch changes and conflict status.

Watch with Copilot / Watch and fix is the separate ongoing Agent Merge automation. It requires eligible paid Copilot access, organization policy, and enabled repository automations; fork and stacked PRs aren't supported. It can modify the remote branch and incurs usage for the enabling user. It doesn't enable auto-merge, but previously enabled auto-merge can still apply. Content Mentor does not enable either option or post a cloud-agent trigger. The existing browser navigation remains available.

For a focused local-fixture desktop smoke test, set CONTENT_MENTOR_VSCODE_EXECUTABLE to an installed Code executable and run node scripts/run-pr-conflict-smoke.js. It uses a separate test profile and local Git remotes only; it does not exercise live Copilot or write to a GitHub PR.

Performance diagnostics

content-mentor.enablePerformanceTracing is an application-scoped setting, off by default on desktop and web. Enable it temporarily to diagnose URL workspace opening, draft-folder loading, and the first load of optional command handlers. Look for [Performance] lines in View → Output → Content Mentor; verbose debug logging is not required.

For a slow URL open, enable tracing before opening the URL. Compare url_resolution, github_auth, workspace_navigation, and workspace_resume, then document_load and editor_show. The shared correlation ID and elapsed time connect the original request to the reloaded workspace. activation_ready measures the activation function, not module parsing; sidebar_ready measures the sidebar's ready handshake, not completion of every background network task. After a traced workspace reload, [PerformanceSummary] prints the complete allowlisted timeline in the destination window even though the original Output channel was replaced. The matching performance_trace_summary event preserves the same stage durations for telemetry analysis when pre-reload events have not finished uploading.

When you open an article URL through Open/Switch Workspace and its repository is already open, Content Mentor asks whether to Start a separate change (the default) or Continue in current workspace. A separate change uses a new working branch from the article's source branch (the repository default branch for published Learn articles), not your current working branch. Your existing branch and PR remain separate. Continue in the current workspace when both articles belong in the same change or PR. Cancel leaves the workspace unchanged. This choice is available on desktop and web.

While an article opens, the Repo Workspace panel shows opening/retry progress instead of empty-workspace guidance. Document loading and editor display share a 30-second deadline. Known transient provider failures can retry within that window; a stalled API call is not automatically duplicated. On failure, use Retry opening article or open the file manually in Explorer. An editor timeout is not evidence that the file is missing or that a fresh branch is needed.

Traces record allowlisted stages/outcomes, durations, elapsed time, counts, cache flags, platform, and a random per-workflow correlation ID. They do not record URLs, paths, user identifiers, tokens, document contents, or raw errors. A validated context can continue across a workspace reload for up to 15 minutes. If tracing is enabled only after navigation, a fresh resume trace measures just the post-reload work, not the earlier URL workflow. Structured performance_trace events use the existing telemetry reporter and respect VS Code telemetry settings; local diagnostic lines remain available when telemetry is disabled. Turn the setting off after troubleshooting. When off, tracing creates no IDs, events, or log lines.

Development builds

Run npm ci to restore the locked dependencies. Use npm run compile-dev for desktop development or npm run compile-web for web development; both also build the webview UI.

Use npm run vscode:prepublish to build production desktop, web, and webview assets. Extension minification follows webpack's --mode production, without requiring a separate NODE_ENV setting. Keep the web extension's single-bundle configuration: its worker cannot resolve the existing relative async chunk URLs.

Content Mentor is powered by AI. Review all output carefully before use.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft