atom-text-editor {
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
font-family: "Operator Mono";
font-weight: 500;
line-height: 1.7;
}
For Atom version < 1.13.x
atom-text-editor::shadow {
.storage.type.function.arrow,
.keyword.operator:not(.accessor),
.punctuation.definition.entity.css {
font-family: 'Fira Code';
}
.string.quoted,
.string.regexp {
-webkit-font-feature-settings: "liga" off, "calt" off;
}
}
For Atom version >= 1.13.x
atom-text-editor.editor {
.syntax--storage.syntax--type.syntax--function.syntax--arrow,
.syntax--keyword.syntax--operator:not(.accessor),
.syntax--punctuation.syntax--definition {
font-family: "Fira Code";
}
.syntax--string.syntax--quoted,
.syntax--string.syntax--regexp {
-webkit-font-feature-settings: "liga" off, "calt" off;
}
}
Save file and it's done.
Works fine with Javascript:
Hi guys,
@orenmizr @chrishiste
I switched from VSCode to Atom recently and the tweak for having ligatures of Fira Code and Operator Mono for fonts is the following.
First download this package https://github.com/be5invis/vscode-custom-css
Then you create a basic css file somewhere on your computer, copy paste this snippet
Then you'll have to go into VSCode settings panel and point to the newly created CSS file.
After that, open the command palette and just activate vscode-custom-css.
This should be the best way to do it.
WARN : Maybe Code will tell you that your Code version is broken, just don't care, it's because of vscode-custom package.