愿随风丶飘雪
愿随风丶飘雪
  • 发布:2023-08-22 23:22
  • 更新:2023-09-06 23:24
  • 阅读:242

【报Bug】雅蓝主题修改注释颜色不生效

分类:HBuilderX

产品分类: HbuilderX

PC开发环境操作系统: Windows

PC开发环境操作系统版本号: 11

HBuilderX版本号: 3.8.12

示例代码:
{  
    "editor.colorScheme": "Atom One Dark",  
    "terminal.type": "内置终端",  
    "explorer.fileReveal.policy": "never",  
    "adb.path": "",  
    "weApp.devTools.path": "",  
    "workbench.colorCustomizations": {  
        "[Default]": { //绿柔  
            "sideBar.background": "#faf6e6", //加深项目管理器颜色  
            "editor.background": "#faf6e6", //加深编辑区域背景颜色  
            "editor.indicator.matchtag":"#000000"  
        },  
        "[Monokai]": { //酷黑  
            "toolBar.background": "#272822", //工具栏背景色设为黑色  
            "sideBar.background": "#272822" //项目管理器背景色设为黑色  
        },  
        "[Atom One Dark]": { //雅蓝  
            "sideBar.background": "#282c34", //项目管理器背景色设为与代码区背景色相同  
            "editor.background": "#282c3f", //调亮编辑区域背景颜色  
            "editor.caretLine": "#3b4559",  
            "editor.indicator.matchtag": "#ffffff",  
            "editorSuggestWidget.selectedBackground": "#3b4559",  
            "list.activeSelectionBackground": "#3d3d3d",  
            "sideBar.backGround": "#181818",  
            "tab.activeBackground": "#414141",  
            "tab.border": "#354436",  
            "tab.hoverBackground": "#4d4d4d",  
            "tab.inactiveBackground": "#212121",  
            "toolBar.background": "#181818"  
        }  
    },  
    "explorer.iconTheme": "hx-file-icons-colorful",  
    "editor.tokenColorCustomizations": {  
        "[Default]": { //绿柔  
            "rules": [{  
                    "name": "Comment",  
                    "scope": "comment",  
                    "settings": {  
                        "fontStyle": "italic",  
                        "foreground": "#00aa00"  
                    }  
                },  
                {  
                    "name": "String",  
                    "scope": "string",  
                    "settings": {  
                        "foreground": "#55abd8",  
                        "fontStyle": "微软雅黑"  
                    }  
                }  
            ]  
        },  
        "[Monokai]": { //酷黑  
            "rules": [  
                {  
                      "name": "Comment",  
                      "scope": [  
                          "comment"  
                      ],  
                      "settings": {  
                          "foreground": "#00aa00",  
                          "fontStyle": "italic"  
                      }  
                  }  
            ]  
        },  
        "[Atom One Dark]": { //雅蓝  
            "rules": [  
                {  
                      "name": "Comment",  
                      "scope": [  
                          "comment"  
                      ],  
                      "settings": {  
                          "foreground": "#00aa00",  
                          "fontStyle": "italic"  
                      }  
                  }  
            ]  
        }  
    }  
}

操作步骤:

雅蓝主题下修改注释颜色

预期结果:

变成想要的绿色

实际结果:

还是之前的灰黑色

bug描述:

修改注释的颜色为绿色 但是不生效 主题位雅蓝

2023-08-22 23:22 负责人:无 分享
已邀请:
DCloud_HB_WKP

DCloud_HB_WKP

需要这么配置:

"[Atom One Dark]": { //雅蓝    
            "rules": [{  
                "name": "Comment",  
                "scope": [  
                    "comment",  
                    "comment.line.double-slash",  
                    "comment.block"  
                ],  
                "settings": {  
                    "foreground": "#00aa00",  
                    "fontStyle": "italic"  
                }  
            }]  
        }
愿随风丶飘雪

愿随风丶飘雪 (作者) - 勿在浮沙筑高台

修改后 注释变颜色了 但是单行注释的双斜杠没有变色

愿随风丶飘雪

愿随风丶飘雪 (作者) - 勿在浮沙筑高台

"[Atom One Dark]": { //雅蓝  
            "rules": [  
                {  
                      "name": "Comment",  
                      "scope": [  
                            "comment",    
                            "comment.line.double-slash",    
                            "comment.block",  
                            "punctuation.definition.comment"  
                      ],  
                      "settings": {  
                          "foreground": "#00aa00",  
                          "fontStyle": "italic"  
                      }  
                  }  
            ]  
        }

"punctuation.definition.comment" 这个属性可以设置双斜杠的颜色

要回复问题请先登录注册