如何在VS Code编辑器中按标题级别更改markdown标题颜色? [英] How do I change markdown heading color by heading level in VS Code editor?

查看:109
本文介绍了如何在VS Code编辑器中按标题级别更改markdown标题颜色?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的问题类似于

My question is similar to this one but the answer given there is for Vim and I need one for VS Code. I'm a real newbie, and I tried to solve this myself, but these attempts failed me:

  • Markdown Preview GitHub Styling - Says it allows user-defined custom css, but it styles html preview, not the text in the editor

Markdown主题工具包-指向自定义.css文件,但其中包含的文件并没有告诉我如何针对不同的标题级别进行不同的操作

Markdown Theme Kit - Points to custom .css files, but the included ones don't tell me how to do it differently for different heading levels

Markdown标头着色-声称可以做到这一点,但是当我尝试放入用户定义的CSS为每个标题级别赋予不同的颜色时,即使关闭/重新启动VS Code之后,我仍然会在相同级别的标题之间获得颜色更改.

Markdown Header Coloring - Claims to do exactly this, but when I try to put in user-defined css to give each heading level a different color, I still get color changes between headings of the same level, even after closing/restarting VS Code.

非常感谢您的帮助.

推荐答案

我遇到了同样的问题,并找到了使用VSCode扩展名

I faced the same issue and find a way with the VSCode extension "Markdown header coloring"

基本上,您必须

  • 安装扩展程序
  • 在settings.json中设置一些自定义设置.您可以在用户定义的标题颜色"部分找到自定义设置的示例
  • 不要忘记,在每次修改后重新加载窗口:打开 Command Palette →键入 Reload window 干杯
  • install the extension
  • set some custom settings in settings.json. You can find examples of custom settings in the section "User defined header coloring"
  • do not forget to reload the window after each modification: open Command Palette → type Reload window Cheers

这篇关于如何在VS Code编辑器中按标题级别更改markdown标题颜色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆