You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何将VS Code基础终端配置为Thapa Technical示例样式?

配置VS Code终端为Thapa Technical同款样式

一、安装终端美化工具(Oh My Posh)

  • Windows系统:打开PowerShell执行命令 winget install JanDeDobbeleer.OhMyPosh -s winget
  • macOS/Linux系统:执行命令 brew install jandedobbeleer/oh-my-posh/oh-my-posh
  • 配置启动加载:打开PowerShell配置文件(执行 notepad $PROFILE 打开),添加以下内容后保存:
    oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH\powerlevel10k_lean.omp.json" | Invoke-Expression
    
    注:Thapa常用自定义主题,你可根据需求修改配置文件路径,或自行定制主题内容

二、配置VS Code终端基础设置

  1. 设置默认终端
    打开VS Code设置(快捷键Ctrl+,),搜索Terminal > Integrated > Profile: Windows(对应你的系统),将默认终端设为PowerShell。

  2. 安装并配置图标字体

    • 下载安装支持图标的Nerd Fonts,比如JetBrainsMono Nerd Font
    • 在VS Code设置中搜索Terminal > Integrated: Font Family,设置值为 "JetBrainsMono Nerd Font"
  3. 调整终端颜色匹配样式
    打开VS Code的settings.json(快捷键Ctrl+Shift+P输入Open Settings (JSON)),添加以下颜色配置:

    "workbench.colorCustomizations": {
      "terminal.background": "#1E1E1E",
      "terminal.foreground": "#D4D4D4",
      "terminalCursor.foreground": "#FFFFFF",
      "terminal.ansiBlue": "#007ACC",
      "terminal.ansiGreen": "#4EC9B0",
      "terminal.ansiRed": "#F48771"
    }
    

三、生效验证

重启VS Code后打开终端,即可看到配置后的样式。若需更贴合Thapa的自定义样式,可进一步调整Oh My Posh的主题配置文件,修改图标、模块显示内容等。

内容的提问来源于stack exchange,提问作者CsCodeway

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.22 08:55:13