LoginSignup
5
5

More than 3 years have passed since last update.

vscodeのmarkdown css変更メモ

Last updated at Posted at 2020-01-19

初期のcssだと若干見づらいところがあるので、githubのcssに差し替えた際のメモ

github cssの取得

プレビューのcssを上記に変更

  • "markdown.styles": ["C:\Users\<ユーザー名>\.vscode\md_preview.css"] とするとプレビュー時のcssが変わる
    • C:\Users<ユーザー名>.vscode以下に置く必要はないけど、その方がわかりやすいかと

Markdown PDFのcssも上記に変更

  • C:\Users<ユーザー名>.vscode\extensions\yzane.markdown-pdf-1.4.1\styles\markdown-pdf.cssを上書きする
    • 念のため、元ファイルはリネームしておいた

フォントを変更

そのままだと漢字が太かったり、細かったりと読みづらいので以下のようにした

body {
font-family: 游ゴシック体, 'Yu Gothic', YuGothic, 'ヒラギノ角ゴシック Pro', 'Hiragino Kaku Gothic Pro', 'MS Pゴシック', 'MS PGothic', sans-serif;
}

参考にさせていただいたサイト

5
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
5