nobuhito / vscode.printcode

PrintCode added printing function to VS Code!!
https://marketplace.visualstudio.com/items?itemName=nobuhito.printcode
MIT License
73 stars 26 forks source link

Option to disable/enable ligatures #18

Closed Inclushe closed 5 years ago

Inclushe commented 6 years ago

I had to go into Chrome Devtools to insert one line of CSS to remove the ligatures from my coding font so that my professor doesn't go "wtf are these symbols". I feel like it would be better as a configuration option instead of having to manually set it each time.

janilahti commented 6 years ago

Could you include your CSS snipplet here?

Inclushe commented 6 years ago

This is what I used:

.cm-s-default .cm-variable, .cm-s-default .cm-punctuation, .cm-s-default .cm-property, .cm-s-default .cm-operator {
    font-variant-ligatures: none;
}

Perhaps it could be added as a configuration option with the settings on, off, or auto, with auto defaulting to the editor.fontLigatures user setting.

nobuhito commented 6 years ago

I think that it is better to make it possible to insert arbitrary CSS, so I will implement it like that. Please give me some time.

nobuhito commented 5 years ago

@Inclushe Please update to Ver.3.0.0 and set the style to printcode.additionalStyleSheet.

I am praying that it will work 😄

Inclushe commented 5 years ago

@nobuhito Guess that works too. Putting that snippet into settings did the job!