[FEATURE] Syntax highlighting in VS Code extension chat panel (re-opening closed requests)

Status Open
Maintainer reply None cached
Activity 15 comments · opened Jun 3, 2026

Summary

The Claude Code VS Code extension renders fenced code blocks in the chat panel as plain monochrome text. No syntax highlighting is applied regardless of the language tag (typescript, python, diff, etc.) or the user's active VS Code theme.

Context

This has been reported before but both issues were closed by the stale bot without a maintainer decision:

  • #54295 — Add syntax highlighting to fenced code blocks in the VS Code extension chat panel
  • #21667 — Code blocks in Claude Code's chat interface only show a dark background without full syntax highlighting

Since code suggestions are the primary output of Claude Code, reading monochrome code is noticeably slower. Users already have grammars, language servers, and themes configured — the chat panel is the only place that ignores them.

Proposed implementation

VS Code exposes APIs for exactly this:

  • TextMate grammar tokenization via vscode.languages — renders with the active theme, no extra dependency
  • Shiki (same lib VS Code's markdown preview uses) — lightweight fallback

Expected behavior

Code blocks are tokenized by their language tag and styled with the active VS Code theme, matching the editor appearance.

View original on GitHub ↗

15 Comments

github-actions[bot] · 4 months ago

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/54295
  2. https://github.com/anthropics/claude-code/issues/59468
  3. https://github.com/anthropics/claude-code/issues/12045

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

Deluvio · 4 months ago
Found 3 possible duplicate issues: 1. [[FEATURE] Add syntax highlighting to fenced code blocks in the VS Code extension chat panel #54295](https://github.com/anthropics/claude-code/issues/54295) 2. [[FEATURE] Syntax highlighting for code blocks in VS Code chat panel #59468](https://github.com/anthropics/claude-code/issues/59468) 3. [[BUG] Code blocks rendered as inline code without syntax highlighting in VSCode extension #12045](https://github.com/anthropics/claude-code/issues/12045) This issue will be automatically closed as a duplicate in 3 days. If your issue is a duplicate, please close it and 👍 the existing issue instead To prevent auto-closure, add a comment or 👎 this comment 🤖 Generated with Claude Code

👎

It's pointless to refer to issues that were closed without good reason.

danielboxer · 3 months ago

I would really like this feature as well, similar to how in the claude code cli it has syntax highlighting.

ralphwest1 · 3 months ago

please consider adding

austinmw · 3 months ago

how does this not have syntax highlighting yet..

mrsylvestre · 2 months ago

Please do it, coders yearns for coloured code snippets!

peshekhanov · 2 months ago

Well, this is disgusting. So much time has passed, but the developers absolutely don't care about this problem, which their competitor solved long ago. Maybe it's time to cancel the subscription.

Deluvio · 2 months ago

still relevant in the current version (2.1.220)

jack-rush-vessev · 2 months ago

Please fix this. It's infuriating that copilot chat has this basic feature working and this extension doesn't

SPVTordGrytting · 1 month ago

Please do this!

VKontic · 26 days ago

+1 Please do this!

VKontic · 26 days ago

has anyone found any another non-official workaround?

johnhubbard · 19 days ago

+1 please do this. And somehow the chat window is always black on grey, regardless of VS code theme or color settings. It's a miserable looking thing, and harder to read than it needs to be.

Jearnest94 · 13 days ago

I finally made the move to Claude code and was met with this. I don't really know what to say. It really seems like such a basic feature shouldn't have been open for 2 months and counting?

If I use the Claude in the native code Copilot Chat UI then it won't let me take use of the credits in the "Pro" plan, so I have to use the extension if I want Claude integrated in code to access those credits.

But then I lose syntax highlighting... Am I missing anything here or is this actually the case?

If there are any solid workarounds, please let me know.

johnhubbard · 1 day ago

WHY IS THERE NO RESPONSE from the engineering team?