Skip to content

Bring good old full width punctuations back #242138

Closed

Description

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.97.2.25045
  • OS Version: kernel 6.13.3, glibc 2.41

Steps to Reproduce:

  1. Type some full width punctuation characters such as ,。;、
  2. See the strange behavior as attached in the image

Image

Traditionally, full-width punctuation characters used to be as wide as Unified CJK ideographs. A recent update broke the consistency. Now their widths are not context-independent.

This must be caused by some underlying Blink/Electron CSS typesetting features. Let me know how should I tweak my fontconfig (and possibly other stuff) if vscode itself cannot afford an option to bring good old full width punctuation back.

Activity

  1. alexdima commented on Nov 15, 2025

    @alexdima
    Member

    The rendering of the font in the code editor is driven by Chromium. Are you able to reproduce this behavior in Chrome too?

  2. added
    info-needed
    font-rendering
    on Nov 15, 2025
  3. neruthes commented on Nov 15, 2025

    @neruthes
    ContributorAuthor

    The rendering of the font in the code editor is driven by Chromium. Are you able to reproduce this behavior in Chrome too?

    Yeah thanks for your attention. I did some search and tested around.

    The good news is that the behavior is controlled by text-spacing-trim. The result I want is text-spacing-trim: space-all; and the current behavior in vscode is text-spacing-trim: normal;. I think this issue doesn't need any active fix from the dev team, so we can safely close it for the original purpose.

    The bad news is that best practice for adding custom CSS to vscode is hard to find and I don't fully understand the tricks on this matter. Do you happen to have some advice?

  4. alexdima commented on Nov 15, 2025

    @alexdima
    Member

    We can add an editor setting, like editor.fontTextSpacing which could, behind the scenes, control this CSS property. PR welcome

  5. vs-code-engineering commented on Nov 23, 2025

    @vs-code-engineering
    Contributor

    This issue has been closed as it has been labeled with info-needed and has not received the additional information that was requested from the issue author. It has been labeled as info-needed for 7 days.

  6. locked and limited conversation to collaborators on Jan 7, 2026
  7. added
    feature-request
    and removed
    info-needed
    on Feb 28, 2026
  8. added
    verification-needed
    on Mar 4, 2026
  9. alexdima commented on Mar 5, 2026

    @alexdima
    Member

    To verify:

    • Have some text like the following:
    奶時住光沒內巴九左走告錯一,。;、;反木位黃草口刀念,共春手們裝師合。重足土北。物方向過村方黑收七男每!采裝食,忍象喜。
    
    • verify that the CJK punctuation is rendered wide:
    Image
  10. added
    verified
    on Mar 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

feature-requestfont-renderingverification-neededverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions