V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
cy18
V2EX  ›  Visual Studio Code

听说 VSCode 用浅色主题对眼睛更好,求推荐一款醒目的浅色主题,尤其是 terminal 里面

  •  
  •   cy18 · 2024-11-25 22:40:21 +08:00 · 6805 次点击
    这是一个创建于 377 天前的主题,其中的信息可能已经有所发展或是发生改变。

    试了好多浅色的主题,VSCode Light 、Github Light 、Solarized Light ,Senlenlized Light 之类的。代码看着倒还好,terminal 里面颜色的区分度都很低。zsh 、git 中的一些东西换了浅色主题后看过去很难区分出不同的颜色,求推荐一个好用的浅色主题。

    第 1 条附言  ·  2024-12-06 22:09:05 +08:00
    试了单独改终端颜色的一些选项,不起作用,
    放狗搜到下面这个选项,改用不同的数字会有不同的效果
    "terminal.integrated.minimumContrastRatio": 1,
    第 2 条附言  ·  2024-12-06 22:10:37 +08:00
    前面打错了,是

    "terminal.integrated.minimumContrastRatio": 1, 这个选项
    42 条回复    2024-12-06 06:46:00 +08:00
    coolfan
        1
    coolfan  
       2024-11-25 23:20:23 +08:00
    默认的 terminal 字体好丑
    DonaidTrump
        2
    DonaidTrump  
       2024-11-25 23:36:01 +08:00   ❤️ 1
    Blue Light Theme
    nebkad
        3
    nebkad  
       2024-11-26 00:29:57 +08:00   ❤️ 1
    Atom One Light
    livin2
        4
    livin2  
       2024-11-26 00:46:28 +08:00
    catppuccin Latte
    lovestudykid
        5
    lovestudykid  
       2024-11-26 02:18:00 +08:00
    Terminal 敲字的时间短吧,我都是编辑器用浅色,terminal 用深色。深色主要的问题是对散光不友好
    jqtmviyu
        6
    jqtmviyu  
       2024-11-26 03:32:06 +08:00
    就自带的 QuietLight

    terminal 用 zsh+p10k
    Pqj6MH888z4rI7uw
        7
    Pqj6MH888z4rI7uw  
       2024-11-26 03:32:47 +08:00
    好像所有浅色主题都有看不清字的毛病,我的解决方案:

    1. 为 Powershell 添加 profile

    ```
    # Profile of Windows Powershell

    # Enable color in ls command.
    Import-Module PSColor

    # Enable PSReadLine
    # Settings for PSReadLine
    Import-Module PSReadLine
    Set-PSReadlineKeyHandler -Key Tab -Function MenuComplete
    Set-PSReadLineOption -PredictionSource History
    Set-PSReadLineOption -Colors @{
    Command = 'Black' # Get-Process
    Number = 'DarkGreen' # 123
    Member = 'Black' # object.Method?
    Operator = 'DarkYellow' # +-*/
    Type = 'DarkCyan' # [System.String]
    Variable = 'DarkBlue' # $profile
    Parameter = 'DarkYellow' # git --clone
    ContinuationPrompt = 'DarkRed' # Line Breaks
    Default = 'Black' # Default
    InlinePrediction = '#BBBBBB' # Autocomplete
    }
    ```

    2. 使用内置的 One Half Light 主题,但是把里面的白色,用黑色的相应颜色替换掉

    ---

    这样操作下来应该不会再有看不清字的现象,好不好看另说
    Donaldo
        8
    Donaldo  
       2024-11-26 03:36:52 +08:00
    显示器原因也挺大的,同一个背景,我办公室色彩好一些的 4K 屏看得清清楚楚,家里面打游戏的 vn 1080p 就有些不舒服。
    TabGre
        9
    TabGre  
       2024-11-26 07:14:50 +08:00 via iPhone
    ayu
    b1t
        10
    b1t  
       2024-11-26 07:27:14 +08:00
    GitHub Theme 中 beta 版本
    jeffw
        11
    jeffw  
       2024-11-26 07:58:06 +08:00
    一直用自带的,挺好的。
    94
        12
    94  
       2024-11-26 08:01:02 +08:00
    ezrameow
        13
    ezrameow  
       2024-11-26 08:23:55 +08:00
    默认高对比度的那个浅色不错
    bgm004
        14
    bgm004  
       2024-11-26 08:53:08 +08:00
    看得清楚才护眼,浅色主题对散光不好。
    lovepocky
        15
    lovepocky  
       2024-11-26 08:57:58 +08:00 via iPhone
    vscode light 就不错。你可能需要调下 terminal 的配色
    DiaoWang
        16
    DiaoWang  
       2024-11-26 09:04:30 +08:00 via iPhone
    我用的默认的 Light+
    mistsobscure
        17
    mistsobscure  
       2024-11-26 09:13:05 +08:00
    同求主题,求绿色大背景的
    SeaSaltPepper
        18
    SeaSaltPepper  
       2024-11-26 09:14:46 +08:00
    Gruvbox Light Hard
    ooTwToo
        19
    ooTwToo  
       2024-11-26 09:27:56 +08:00
    深色才护眼吧
    focux
        20
    focux  
       2024-11-26 09:29:32 +08:00
    公司的破显示器,还真就用 Blue Light Theme 能看清,别的都不大行=。=!
    liyifu1994
        21
    liyifu1994  
       2024-11-26 09:36:59 +08:00
    Noctis Lux
    um1ng
        22
    um1ng  
       2024-11-26 09:45:06 +08:00
    Tokyo Night Light
    sastar
        23
    sastar  
       2024-11-26 09:49:58 +08:00
    VSC 自带的 Quiet Light
    vruzo
        24
    vruzo  
       2024-11-26 09:54:57 +08:00
    Github Light Theme
    chy2v
        25
    chy2v  
       2024-11-26 10:05:28 +08:00
    Dawnfox
    edwardzcn98
        26
    edwardzcn98  
       2024-11-26 10:09:04 +08:00
    Catppuccin Latte (喜欢紫色💜可以看看
    adoal
        27
    adoal  
       2024-11-26 10:28:44 +08:00
    根据我的经验,terminal 还是不要用浅色了。因为 terminal 里除了配色本身的 theme 之外,还有终端应用程序根据 ANSI 16 color 配出来的应用程序 theme ,比如 ls 的 DIR_COLORS ,这种 theme 一般都是根据深色方案设计的,普通文本是暗色,强调文本是亮色,放在深底色上效果很好,放在浅底色上,强调的反而看不清了,因此需要给支持 theme 的终端应用程序逐个做浅色适配,不支持 theme 的就只能忍着。
    ethsol
        28
    ethsol  
       2024-11-26 10:41:21 +08:00
    Solarized Light 沙漠色,个人感觉不错
    Dyon
        29
    Dyon  
       2024-11-26 10:42:10 +08:00
    为 Catppuccin 再添一票
    Dyon
        30
    Dyon  
       2024-11-26 10:42:45 +08:00
    虽然我用的是深色
    inhzus
        31
    inhzus  
       2024-11-26 10:50:56 +08:00   ❤️ 1
    Visual Studio Light - C/C++
    june4
        32
    june4  
       2024-11-26 10:53:04 +08:00
    Brackets Light Pro
    vst93
        33
    vst93  
       2024-11-26 11:52:49 +08:00
    Cyan Light Theme Fork 😼
    yhxx
        34
    yhxx  
       2024-11-26 12:01:58 +08:00
    Solarized Light
    rrfeng
        35
    rrfeng  
       2024-11-26 12:14:27 +08:00
    terminal 可以自己配色,把几个重点的 ansiXX 颜色找一个 terminal 抄出来就行了。
    我现在代码是浅色,terminal 还是习惯深色。


    "workbench.colorCustomizations": {
    "terminal.background": "#000000",
    "terminal.foreground": "#e7e7e7",
    "terminal.ansiBlack": "#000000",
    "terminal.ansiBrightBlack": "#676767",
    "terminal.ansiBlue": "#00a1f9",
    "terminal.ansiBrightBlue": "#3662dc",
    "terminal.ansiCyan": "#8BA59B",
    "terminal.ansiBrightCyan": "#503df4",
    "terminal.ansiGreen": "#95C085",
    "terminal.ansiBrightGreen": "#237e02",
    "terminal.ansiMagenta": "#b93ec1",
    "terminal.ansiBrightMagenta": "#f07ef8",
    "terminal.ansiRed": "#FB543F",
    "terminal.ansiBrightRed": "#FB543F",
    "terminal.ansiWhite": "#A89984",
    "terminal.ansiBrightWhite": "#FDF4C1",
    "terminal.ansiYellow": "#FAC03B",
    "terminal.ansiBrightYellow": "#FAC03B"
    },
    maxin6
        36
    maxin6  
       2024-11-26 17:35:24 +08:00
    SHF
        37
    SHF  
       2024-11-26 21:11:31 +08:00


    @inhzus 我也来发一个 😂
    Danswerme
        38
    Danswerme  
       2024-11-26 21:27:21 +08:00
    推荐 Solarized Light ,然后自己在配置文件里改一下终端的颜色就好啦
    shintendo
        39
    shintendo  
       2024-11-26 22:40:37 +08:00
    深色主题才对散光不好吧
    刚入行的时候一直用 dark mode ,几年下来散光深了好多,改用 light mode 就舒服了,现在再看 dark mode 的代码,时间一长就会难受想流泪
    Kobayashi
        40
    Kobayashi  
       2024-11-27 13:29:17 +08:00
    Atom One 主题比较完美的移植,同时支持亮色、暗色。https://marketplace.visualstudio.com/items?itemName=wangweixuan.yithemes

    terminal 颜色不满意可以用 workbench.colorCustomizations 覆写,有模块自选即可 https://glitchbone.github.io/vscode-base16-term/#/one-light
    gongquanlin
        41
    gongquanlin  
       2024-11-27 22:21:25 +08:00
    vscode 在 windows 上字体糊,尝试下系统 -> 更改设置 -> 高级 -> 设置 -> 视觉效果调整为最佳外观,有可能可以解决!

    ---

    我的 editor:font family 设置:
    ```
    'Fira Code','黑体', 'Courier New', monospace
    ```
    Fira Code 真的不错;


    ---


    我的字体大小为 13 ; Line Height 行高为 1.6 ; Console Line Height 为 21

    用起来感觉非常不错
    magicdawn
        42
    magicdawn  
       2024-12-06 06:46:00 +08:00
    发几个还没人发的
    min light
    vitesse light
    关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   2239 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 15:56 · PVG 23:56 · LAX 07:56 · JFK 10:56
    ♥ Do have faith in what you're doing.