Changing Chat Panel Font Size / Line Height easily

For those installing cursor with Appimage, the mount directory is read-only, here’s the solution taken from this github comment:

  • Open a terminal and navigate to the directory where you downloaded the AppImage.

  • Make the AppImage executable:

    chmod +x cursor-0.40.4x86_64.AppImage
    
  • Create a new directory to extract the content:

    mkdir ~/cursor-extracted
    
  • Extract the contents of the AppImage:

    ./cursor-0.40.4x86_64.AppImage --appimage-extract
    
  • Move the extracted content to the new directory:

    mv squashfs-root/* ~/cursor-extracted/
    
  • Create a startup script for Cursor:

    cat << EOF > ~/run-cursor.sh
    #!/bin/bash
    export TMPDIR=\$HOME/cursor-temp
    mkdir -p \$TMPDIR
    cd ~/cursor-extracted
    ./AppRun "\$@"
    EOF
    
  • This script sets up a custom temporary directory to avoid permission issues.

  • Make the script executable:

    chmod +x ~/run-cursor.sh
    
  • Run Cursor using the new script:

    ~/run-cursor.sh
    
  • Ctrl+Shift+P User Settings (JSON)

  • Config example using Terminus font, for this font set all lineHeight values to 18:

        [...]
        "custom-ui-style.font.monospace": "'Terminus (TTF)', 'Droid Sans Mono', monospace",
        "custom-ui-style.font.sansSerif": "'Terminus (TTF)', 'Droid Sans Mono', monospace",
        "custom-ui-style.stylesheet": {
          // Adjust Chat UI text
          ".anysphere-markdown-container-root": "font-size: 12px; line-height: 1.8;",
          // Adjust Chat UI Code block
          ".markdown-block-code *": "font-size: 12px !important; line-height: 1.8;",
          // Adjust Chat Font
          ".aislash-editor-input": "font-size: 14px !important; line-height: 1.8 !important;",
          ".aislash-editor-input-readonly": "font-size: 14px !important; line-height: 1.8 !important;",
          ".aislash-editor-placeholder": "font-size: 14px !important; line-height: 1.8 !important;",
          // Others
          ".anysphere.cursor-retrieval": "font-size: 14px !important; line-height: 1.8 !important;",
          ".aiEditorBox-anysphere": "font-size: 14px !important; line-height: 1.8 !important;",
          ".aichat-code-block-anysphere": "font-size: 14px !important; line-height: 1.8 !important;",
          ".composer-code-block-anysphere": "font-size: 14px !important; line-height: 1.8 !important;",
          ".aicmdk-context-code-block-anysphere": "font-size: 14px !important; line-height: 1.8 !important;",
          // Explorer
          ".monaco-panel-view": "font-size: 12px !important; line-height: 1.8 !important;",
          ".monaco-list-row": "font-size: 12px !important; line-height: 1.8 !important;",
          ".monaco-workbench": "font-size: 12px !important; line-height: 1.8 !important;"
        }
    }
    
  • A notification will appear bottom-left, click Yes, close Cursor and ~/run-cursor.sh

  • Example view:

1 Like