3 ms·
Sure, here's an example: https://imgur.com/482puD4 https://imgur.com/482puD4 If the text looks huge, it's because I took the screenshot on a high-DPI device w
by Stratoscope 8y ago
Sure, here's an example:
https://imgur.com/482puD4 https://imgur.com/482puD4
If the text looks huge, it's because I took the screenshot on a high-DPI device with 200% scaling, sorry about that. Imagine it half the size and you will have a better idea of how it actually looks.
In any case, the point is that code like this just doesn't depend on monospacing. If you viewed the same code in a monospaced font, it would look pretty much the same except for the font choice.
The key is to not do column alignment tricks that assume a monospaced font, like this:
doSomething(oneParam,
anotherParam);
Instead, if you just do indentation like this, your code will look fine with any font:
doSomething(
oneParam,
anotherParam
);