Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do i setup font ligatures for Visual Studio Code?

I am setting up fonts ligatures for my VSCode using these two lines.

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

But it still looks the same as before.

I have tried to disable all of my installed extensions but it didn't work.

Here is my full settings:

{
  "workbench.iconTheme": "material-icon-theme",
  "workbench.colorTheme": "Material Theme Darker High Contrast",
  "editor.formatOnSave": true,
  "explorer.confirmDelete": false,
  "editor.suggestSelection": "first",
  "vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
  "window.zoomLevel": 0,
  "editor.fontSize": 16, //!=
  "editor.fontFamily": "'Fira Code'",
  "editor.fontLigatures": true,
  "explorer.confirmDragAndDrop": false
}

I want fully functional font ligatures as on this page: How i want it to look. Instead I am getting basic text with some font.

like image 987
Kolobozka6b Avatar asked May 19 '19 16:05

Kolobozka6b


People also ask

How do I enable font ligatures Vscode terminal?

Setup Visual Studio Code To setup Cascadia Code in Visual Studio Code, open the menu from File -> Preferences -> Text Editors -> Font and in the textbox write "Cascadia Code" before the other fonts. You have to enable the checkbox to enabling the Font Ligatures (see the picture above).

How do I enable ligatures?

If in Windows… In Word 2010 or newer for Windows, press Control-D to open the Font dialog box, and select the Advanced tab. Check the option to “Use Contextual Alternates,” then set Ligatures to “All,” and click OK.

How do I get font ligatures?

Head over to Window > Type > Glyphs to open the Glyphs panel. To activate or deactivate ligatures, open the Character panel by going to Window > Type > Character. Click on the top right corner menu and select Ligatures to activate or deactivate them.


1 Answers

Step #1: Install Fira Code.

Step #2: Set the font in VSCode settings:

"editor.fontFamily": "Fira Code, Menlo, Monaco, 'Courier New', monospace",
"editor.fontLigatures": true,

Step #3: Restart/reload VSCode.

That's about it.

like image 189
Ahmad Awais Avatar answered Oct 08 '22 18:10

Ahmad Awais