Skip to content

Issue: Visual Studio Code與Windows Terminal中標籤不作用(Tag Ligatures seems not work in my vs code and windows terminal) #566

@510208

Description

@510208

問題說明

首先,我很喜歡這個字體。尤其是TODO的標籤那個功能。

因此我決定自己使用GitHub Action建置一個符合我的需求的字體版本。因為我的電腦中也安裝有原版的Maple Font,為了避免撞名並且方便分辨,我將自己使用Action調整過的字體改命名為Samhacker Maple Font Mono NFMono CN(希望這沒有違反字體的使用規定,我只是自己拿來用而已)

但我在Visual Studio Code與Windows Terminal中啟用了這個字體,我想看到的[TODO]功能卻沒有被啟用。我已經開了VSCode的連字支持,但似乎沒有幫助(詳見附圖)。

Image

Note

順帶一提,我所謂的「不作用的標籤」指的是這個:
Image

預計目標

正常顯示標籤,如下圖
Image

復現方式

  1. 按照讀我檔案的說明復刻(FORK)儲存庫並透過GitHub Actions建置字體
  2. 將字體設為Visual Studio Code的程式碼編輯字體(terminal.integrated.fontFamilyeditor.fontFamily
  3. 啟用程式連字支持(terminal.integrated.fontLigatures.enablededitor.fontLigatures
  4. 重啟VSCode

環境設定

字體建置選項

我的字體設定可以在我Fork的儲存庫中看到。如果有需要可以點這個連結前往: config.json

GitHub Action

GitHub Action的建置流程與記錄檔在這裡:Custom Build #1

Visual Studio Code

另外,如果有需要以下是我的VSCode的配置與VSC的版本資訊,很亂...:

{
  "git.autofetch": true,
  "editor.fontFamily": "'Samhacker Maple Font Mono NFMono CN', 'FiraCode Nerd Font', 'Noto Sans TC', monospace",
  "git.enableSmartCommit": true,
  "workbench.iconTheme": "material-icon-theme",
  "explorer.confirmDelete": false,
  "security.workspace.trust.untrustedFiles": "open",
  "background.enabled": true,
  "background.fullscreen": {
    "images": [
      "https://510208.github.io/b702be285b901cb31fb100cdf4ed7271_waifu2x_art_noise1_scale.png",
      "file:///C:/vsbackground/2.png",
      "file:///C:/vsbackground/1.png"
    ],
    "opacity": 0.95,
    "size": "cover",
    "position": "center",
    "interval": 1000,
    "random": true
  },
  "background.editor": {
    "useFront": false,
    "style": {
      "background-position": "95% 100%",
      "background-size": "10% auto",
      "opacity": 0.85
    },
    "styles": [{}, {}, {}],
    "images": [
      "file:///C:/vsbackground/Kongo.png",
      "file:///C:/vsbackground/Kt.png",
      "file:///C:/vsbackground/Kuroko.png",
      "file:///C:/vsbackground/Mm.png",
      "file:///C:/vsbackground/Uk.png"
    ],
    "interval": 0,
    "random": true
  },
  "material-icon-theme.folders.color": "#7cb342",
  "files.autoSave": "onFocusChange",
  "explorer.confirmDragAndDrop": false,
  "git.confirmSync": false,
  "github.copilot.chat.localeOverride": "zh-TW",
  "gitlens.defaultDateLocale": "zh-TW",
  "terminal.integrated.fontFamily": "'Samhacker Maple Font Mono NFMono CN', 'FiraCode Nerd Font', 'Noto Sans TC', monospace",
  "redhat.telemetry.enabled": false,
  "python.defaultInterpreterPath": "C:\\Users\\Acer91\\AppData\\Local\\Programs\\Python\\Python310\\python.exe",
  "python.createEnvironment.trigger": "off",
  "terminal.integrated.enableMultiLinePasteWarning": "auto",
  "workbench.colorTheme": "Railgun",
  "editor.formatOnSave": true,
  "editor.defaultFormatter": "esbenp.prettier-vscode",
  "terminal.integrated.allowedLinkSchemes": [
    "file",
    "http",
    "https",
    "mailto",
    "vscode",
    "vscode-insiders",
    "ms-settings"
  ],
  "explorer.confirmPasteNative": false,
  "editor.tabSize": 2,
  "geminicodeassist.project": "",
  "editor.cursorSmoothCaretAnimation": "on",
  "editor.cursorBlinking": "smooth",
  "diffEditor.codeLens": true,
  "update.showReleaseNotes": false,
  "geminicodeassist.inlineSuggestions.enableAuto": true,
  "gitlens.ai.model": "vscode",
  "gitlens.ai.vscode.model": "copilot:gpt-4-turbo",
  "chat.mcp.discovery.enabled": true,
  "workbench.secondarySideBar.showLabels": false,
  "workbench.productIconTheme": "bongocat",
  "vscode-live2d.enabled": true,
  "svelte.enable-ts-plugin": true,
  "github.copilot.nextEditSuggestions.enabled": true,
  "chat.agent.enabled": true,
  "typescript.updateImportsOnFileMove.enabled": "always",
  "chat.editing.confirmEditRequestRemoval": false,
  "auto-rename-tag.activationOnLanguage": [
    "html",
    "xml",
    "php",
    "javascript",
    "typescript",
    "vue",
    "svelte",
    "astro",
    "markdown",
    "javascriptreact"
  ],
  "editor.linkedEditing": true,
  "terminal.integrated.fontLigatures.enabled": true,
  "editor.fontLigatures": true
}
版本: 1.102.2 (system setup)
認可: c306e94f98122556ca081f527b466015e1bc37b0
日期: 2025-07-22T12:15:48.520Z
Electron: 35.6.0
ElectronBuildId: 11847422
Chromium: 134.0.6998.205
Node.js: 22.15.1
V8: 13.4.114.21-electron.0
OS: Windows_NT x64 10.0.19045

作業系統

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions