Skip to content

Keyboard shortcut strings are sometimes formatted strangely in Copilot responses #270654

@jruales

Description

@jruales

Does this issue occur when all extensions are disabled?: N/A (needs GitHub Copilot extension)

  • VS Code Version: 1.106.0-insider (Universal)
  • OS Version: macOS Sequoia 15.7.1

Steps to Reproduce:

  1. Ask Copilot to tell you the keyboard shortcut of a certain command
  2. Then, notice how it formats the keyboard shortcut strings:

Sometimes, Copilot will output the shortcut as a Markdown code span (with backtick, like so: ⇧⌥F), which looks very strange and buggy because of the different sizes and font weights of the displayed unicode glyphs:
Image

Other times, it will be displayed within a Markdown bold span (with "**", like so: ⇧⌥F), where the glyphs look much nicer with equal size and font weight.:
Image

Another possibility is that Copilot could use the kbd HTML tag (Like so: + + F, although note that here on GitHub, GitHub seems to also be formatting the ⇧ and ⌥ characters inside of kbd tag in a strange way).

Image

If the kbd HTML tag were to be used, it should be noted that the Copilot output isn't able to handle those tags at the moment:

Image

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions