Skip to content

VS Code Instructions

Jón Trausti edited this page Sep 27, 2018 · 33 revisions

Using the Settings Editor

To open the settings editor, first from the File menu choose Preferences, Settings or use keyboard shortcut Ctrl+, (Cmd+, on Mac).

To enable FiraCode in the settings editor expand the "Text Editor" settings under "Commonly Used" and then click on "Font". In the "Font Family" input box type Fira Code, replacing any content. Tick the radio box "Enabled/Disables font ligatures" under "Font Ligatures" to enable the special ligatures.

Manually Editing settings.json

Visual Code allows you to also edit the underlying settings.json config file. First open the settings editor as described above, then click the "three dots" icon to to the right and select "Open settings.json" from the popup menu.

Then paste the following lines and save the file.

"editor.fontFamily": "Fira Code",
"editor.fontLigatures": true,

If this doesn't work for you, you can try:

  1. restarting VS Code;
  2. wrapping the "Fira Code" section with additional apostrophes:
    "editor.fontFamily": "'Fira Code'",
    "editor.fontLigatures": true,

Font weights

To achieve different weights add one of the following (verified on Mac):

    "editor.fontWeight": "300" // Light
    "editor.fontWeight": "400" // Regular
    "editor.fontWeight": "500" // Medium
    "editor.fontWeight": "600" // Retina, Bold font must not be installed!
    "editor.fontWeight": "600" // Bold

Clone this wiki locally