opkdisk.blogg.se

Yapf in visual studio code format document not working
Yapf in visual studio code format document not working












yapf in visual studio code format document not working

Want to program in Zapf Chancery? Go right ahead. The nice thing about proportional fonts is you have so many to choose from. The rest of the settings are for making proportional fonts look nice for my Python code. They never will work well, too much Unix console UI assumes fixed width.

yapf in visual studio code format document not working yapf in visual studio code format document not working

Note you have to set the terminal font to a fixed width font: by default it will inherit the editor fontFamily and proportional fonts do not work at all in a terminal window. To get there I had to set up VS.Code to deal nicely with proportional fonts, then adopt a Python code formatter that put out code that looked good in my setup: YAPF, not Black. GoLang gave it a lot of legitimacy Rob Pike has been using proportional fonts for decades and who’s going to say he is wrong? It’s ridiculous how we still write code as if our I/O devices were line printers and ttys (or worse, literal punched cards.) Proportional fonts are certainly idiosyncratic for coding but there’s a growing community of folks doing it. But since I’m switching to VS.Code I figured it was time to also consider trying proportional fonts for coding again. I normally frown on time spent customizing coding environments.














Yapf in visual studio code format document not working