当前位置: 首页 > news >正文

hbuilderx主题色分享-github风格

效果

在这里插入图片描述

步骤

hbuilderx总共有三种主题,绿柔主题Default,酷黑主题Monokai,雅黑主题Atom One Dark,修改主题色是基于三种主题之一的,不能直接创建一个新主题,比如下方配置是基于Atom One Dark(对象名为[Atom One Dark]),则当前hbuilderx必须处于雅黑主题,配置才能有作用

工具>设置>源码视图>Settings.json中加入以下配置

"workbench.colorCustomizations": {"[Atom One Dark]": {"editor.background": "#0D1117","sideBar.background": "#010409","menubar.background": "#0D1117","toolBar.background": "#0D1117","tab.inactiveBackground": "#0D1117","tab.activeBackground": "#0D1117","editor.tab.background": "#0D1117","editor.indicator.matchtag": "#ffffff"}},"editor.tokenColorCustomizations": {"[Atom One Dark]": {"rules": [{"scope": ["string"],"settings": {"foreground": "#A5D6FF"}},{"scope": ["entity.other.attribute-name"],"settings": {"foreground": "#56C0FF"}},{"scope": ["meta.tag"],"settings": {"foreground": "#E6EDF3"}},{"scope": ["variable.other.readwrite.js","variable.other.readwrite.ts","variable.other.readwrite.tsx"],"settings": {"foreground": "#E6EDF3"}},{"scope": ["entity.name.tag"],"settings": {"foreground": "#7EE787"}},{"scope": ["meta.method-call", "meta.method"],"settings": {"foreground": "#E6EDF3"}},{"scope": ["text.html.vue"],"settings": {"foreground": "#E6EDF3"}},{"scope": ["keyword.other.unit"],"settings": {"foreground": "#E6EDF3"}},{"scope": ["support.constant.property-value.css", "constant.numeric"],"settings": {"foreground": "#56C0FF"}},{"scope": ["support.type.property-name"],"settings": {"foreground": "#E06C75"}}]}},

配置讲解

  • workbench.colorCustomizationssideBar.background控制项目管理器背景颜色
  • workbench.colorCustomizations editor.background控制编辑区域背景颜色
  • editor.tokenColorCustomizations设置代码块的对应颜色
  • 如何设置代码块颜色
  • 1.光标点击代码块
  • 2.工具>主题>inspect tokens and colors
  • 3.控制台将打印代码块规则
  • 4.复制到Settings.json的rules规则中即可自定义代码块颜色
    在这里插入图片描述
http://www.lryc.cn/news/105625.html

相关文章:

  • 【C++】类与对象(1)
  • Java课题笔记~ MyBatis核心配置
  • 从0开始自学网络安全(黑客)
  • kotlin 编写一个简单的天气预报app(四)增加界面显示
  • 英语不好能学好Python吗?Python常用英文单词汇总
  • Counting Stars 2023“钉耙编程”中国大学生算法设计超级联赛(5)hdu7335
  • 浅谈document.write()输出样式
  • AIGC(Artificial Intelligence and Graph Computing)职业发展路径和前景如何?
  • MySql006——基本的SELECT查询语句
  • 【啥都生】分类项目中的模型搭建代码解析
  • Ubuntu出现了内部错误
  • Stable Diffusion AI绘画初学者指南【概述、云端环境搭建】
  • 小程序动态隐藏分享按钮
  • 语音合成是什么?如何进行语音合成TTS数据采集?
  • 实用干货!一文读懂Salesforce中6种数据关系类型!
  • Spring引入外部数据源
  • word里的页码问题
  • ​LeetCode解法汇总142. 环形链表 II
  • 危化品行业防雷检测综合解决方案
  • 刷题笔记:day 1
  • Linux——平台设备及其驱动
  • 【C语言技巧】三种多组输入的写法
  • DB2数据库巡检脚本
  • Eureka 学习笔记3:EurekaHttpClient
  • Android Framework 之 启动流程
  • Qt、C/C++环境中内嵌LUA脚本、实现LUA函数的调用执行
  • 超详细 | 模拟退火算法及其MATLAB实现
  • 在线餐饮油烟实时监测系统的设计与实现
  • 7-2 凯撒密码 (20分)
  • LeetCode_贪心算法_中等_763.划分字母区间