<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Sam Wronski</title>
    <description>The latest articles on DEV Community by Sam Wronski (@worldofzero).</description>
    <link>https://dev.to/worldofzero</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F146287%2F3a4d4d5e-b293-4fc4-91f9-939c54c47b1a.png</url>
      <title>DEV Community: Sam Wronski</title>
      <link>https://dev.to/worldofzero</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/worldofzero"/>
    <language>en</language>
    <item>
      <title>Using Font Ligatures in VS Code</title>
      <dc:creator>Sam Wronski</dc:creator>
      <pubDate>Mon, 01 Nov 2021 18:36:40 +0000</pubDate>
      <link>https://dev.to/worldofzero/using-font-ligatures-in-vs-code-4lpb</link>
      <guid>https://dev.to/worldofzero/using-font-ligatures-in-vs-code-4lpb</guid>
      <description>&lt;p&gt;Font ligatures combine multiple characters into a single unique character. Some fonts provide ligatures specifically for software development.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fl3iggkf8snkk158mm0fm.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fl3iggkf8snkk158mm0fm.png" alt="Font Ligatures in VS Code infographic"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Some free fonts that support ligatures are:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Font&lt;/th&gt;
&lt;th&gt;Reference&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Cascadia Code&lt;/td&gt;
&lt;td&gt;&lt;a href="https://github.com/microsoft/cascadia-code" rel="noopener noreferrer"&gt;link&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Fira Code&lt;/td&gt;
&lt;td&gt;&lt;a href="https://github.com/tonsky/FiraCode" rel="noopener noreferrer"&gt;link&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;JetBrains Mono&lt;/td&gt;
&lt;td&gt;&lt;a href="https://www.jetbrains.com/lp/mono/" rel="noopener noreferrer"&gt;link&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Iosevka&lt;/td&gt;
&lt;td&gt;&lt;a href="https://github.com/be5invis/Iosevka" rel="noopener noreferrer"&gt;link&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Hasklig&lt;/td&gt;
&lt;td&gt;&lt;a href="https://github.com/i-tu/Hasklig" rel="noopener noreferrer"&gt;link&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Monoid&lt;/td&gt;
&lt;td&gt;&lt;a href="https://larsenwork.com/monoid/" rel="noopener noreferrer"&gt;link&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Victor Mono&lt;/td&gt;
&lt;td&gt;&lt;a href="https://rubjo.github.io/victor-mono/" rel="noopener noreferrer"&gt;link&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;To enable font ligatures in Visual Studio Code you will need to edit the &lt;code&gt;settings.json&lt;/code&gt; file. To do this open the VS Code settings (File -&amp;gt; Preferences -&amp;gt; Settings) select the Text Editor group and Font settings. Replace the name of the font with the font you would like to use. For example if you would like to use Cascadia Code then replace the font with &lt;code&gt;Cascadia Code&lt;/code&gt;. You may include fallback fonts that will be used if the first font is not available. &lt;code&gt;Cascadia Code, Fira Code&lt;/code&gt; will prioritize Cascadia Code but use Fira Code if Cascadia Code isn't available on the current machine.&lt;/p&gt;

&lt;p&gt;Once you've configured the font you'll need to explicitly enable ligatures. This is a separate option and requires you to modify the &lt;code&gt;settings.json&lt;/code&gt; file directly. You will need to add the &lt;code&gt;"editor.fontLigatures"&lt;/code&gt; setting to your &lt;code&gt;settings.json&lt;/code&gt; settings file. Once this is done your settings should include two lines that look something like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"editor.fontFamily"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"*** Your ligature enabled font ***"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"editor.fontLigatures"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"..."&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"your other settings"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Once you've made these changes you should be ready to start taking advantage of ligatures in your code.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Note: Different fonts may support a different set of ligatures.&lt;/p&gt;
&lt;/blockquote&gt;

</description>
      <category>vscode</category>
      <category>productivity</category>
    </item>
  </channel>
</rss>
