Skip to content

[ENHANCEMENT] Adjust the font size in Zoo Code extension #157

Closed

Description

@duvw

Problem (one or two sentences)

The font size within the Zoo-Code extension is a bit small, especially on small screen or laptop and it can not adjust by the VS Code settings.
I don't find any settings in the extension which can adjust the font size.

Context (who is affected and when)

I search the internet find this is an old issue in former Roo-Code project. Many users had submitted issue on that project but not solved yet now.
Related Issues:
RooCodeInc/Roo-Code#5783
RooCodeInc/Roo-Code#7530
RooCodeInc/Roo-Code#8100

Desired behavior (conceptual, not technical)

The font size is quiet small comparing with the code font size in VS Code.
The only way to solve this is to enlarge the font size with Cmmmand +, however, the code font size is enlarged as well.

Constraints / preferences (optional)

Can anyone pay attention to this UI issue?
Zoo-Code is a brilliant extension in code agent area. But new user are likely retreated by the UI issue and lose such a remarkable tool for coding.
I notice some developer submitted a PR but refused with some developing issues.(RooCodeInc/Roo-Code#8103)

Request checklist

  • I've searched existing Issues and Discussions for duplicates
  • This describes a specific problem with clear context and impact

Zoo Code Task Links (optional)

No response

Acceptance criteria (optional)

No response

Proposed approach (optional)

I wish the extension can adjust the font size in its setting, only 3 options(small, normal, large) are much better than now.

Trade-offs / risks (optional)

No response

Activity

  1. duvw commented on May 18, 2026

    @duvw
    Author

    Now, users can only solve this by changing the css style themselves.

    vi ~/.vscode/extensions/zoocodeorganization.zoo-code-3.54.1/webview-ui/build/assets/index.css 
    /* Change part of the text font size settings of the file */
    --text-xs:calc(var(--vscode-font-size)*.9);
    --text-xs--line-height: calc(1/0.75);
    --text-sm: calc(var(--vscode-font-size) * .95);
    --text-sm--line-height: calc(1.25/0.875);
    
    /* Add the following code to the end of the index.css file */
    /* Custom ZooCode Chat Text Sizes */
    p,
    li,
    code,
    td, 
    th {
      font-size: calc(var(--vscode-font-size) * 1.2) !important;
      line-height: 1.5 !important;
    }
    
    /* Make code blocks inside the chat slightly larger */
    pre code {
      font-size: calc(var(--vscode-font-size) * 1.2) !important;
    }
    /* Fix the "Type a message..." Input Box (Targets VS Code Shadow DOM) */
    textarea,
    vscode-text-area::part(control) {
      font-size: calc(var(--vscode-font-size) * 1.2) !important;
      line-height: 1.5 !important;
    }
    
    /* Fix the "You said" User Messages */
    .whitespace-pre-wrap,
    div[style*="pre-wrap"],
    div[style*="break-word"] {
      font-size: calc(var(--vscode-font-size) * 1.2) !important;
      line-height: 1.5 !important;
    }
  2. kyr0 commented on May 18, 2026

    @kyr0

    Could we maybe just implement a menu entry in the settings UI for this? Something along the lines of: "Advanced UI Customization" where we can simply paste/change the CSS? The default value could be the default CSS used by the plugin, so users have the perfect starting point. Also, a "Reset to defaults" button would be great if we do it like that.

    The elegance of this would be, that our "users" are developers. CSS isn't a complexity for them or AI is used to generate it based on prompt, given the original CSS as an example (e.g. this could be an enhancement for the future to have a text prompt field to let the model come up with the desired changes as CSS... ;)

    And implementation-wise, it's super easy as we only need to replace the existing <style> element (identified by id) when values are changed, dynamically. And initial rendering is exactly the same algo. Take the value from settings, render the <style> element with id.

  3. duvw commented on May 19, 2026

    @duvw
    Author

    In VS Code, there are two variable used for setting font size:

    • --vscode-font-size: This is a more general variable representing the font size used in the workbench UI (e.g., sidebars, file explorers, tabs, status bar). It is mapped to the user's window.zoomLevel or the global UI font settings. It is usually hardcoded by the OS (around 13px on Mac).
    • --vscode-editor-font-size: This variable specifically targets the font size used within the code editor pane. It is mapped directly to the user's editor.fontSize setting.

    I clone the code from Zoo-Code repository and find the developer use --vscode-font-size to calculate most parts of the font size of this project. So no matter how big you set the font size in VS Code Settings, the font size within Zoo-Code never change. The only way to change the UI font size is to zoom the entire app window using Cmd +.
    Image

    From my perspective, those Chat/General UI components (buttons, input boxes, labels, descriptions) should set font size with --vscode-font-size. While at least the code blocks in markdown file within Zoo-Code should set font size with --vscode-editor-font-size, which will automatically update when the user changes their VS Code settings, providing a seamless "native" feel that users expect from high-quality extensions.

  4. proyectoauraorg commented on May 24, 2026

    @proyectoauraorg
    Contributor

    Looking into this — adding a configurable chat font size for the Zoo Code panel, independent of VS Code's editor font. PR incoming.

  5. duvw commented on May 24, 2026

    @duvw
    Author

    Looking into this — adding a configurable chat font size for the Zoo Code panel, independent of VS Code's editor font. PR incoming.

    We are looking forward to the new settings feature, thanks for your efforts on this issue!👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions