LoginSignup
9
7

More than 5 years have passed since last update.

Visual Studio Codeにフォントを複数設定する

Last updated at Posted at 2015-10-25

フォントの変更の仕方はググればすぐでてきた。ので、早速やってみる。

参考:https://code.visualstudio.com/docs/customization/userandworkspace

Windowsの場合は「File > Preferences > User Settings」で以下のJSONファイルが開くので、そこにeditor.fontFamilyを指定。

settings.json
// Place your settings in this file to overwrite the default settings
{
    "editor.fontFamily": "Source Code Pro"
}

けど、日本語がなんか違和感ある。「判」の縦棒が曲がったりとか。

han.png

なので、日本語には日本語のフォントを別に当てたい。そういうときはこう。

settings.json
// Place your settings in this file to overwrite the default settings
{
    "editor.fontFamily": ["Source Code Pro", "Yu Gothic UI"]
}

han2.PNG

(ちなみにこのファイル、.jsonという拡張子だけど、コメント書けるから厳密にはJSONではないのでは)

9
7
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
9
7