Do any of you program on non-US keyboard layouts?

namingthingsiseasy@programming.dev to Programming@programming.dev – 131 points –

I've used a US-QWERTY keyboard layout my entire life. I've seen other layouts that do things like reduce the size of the enter/backspace keys, move the pipe operator (|) and can't wrap my head around how I would code on those.

What are your experiences? Are there any layouts that you prefer for coding over US English? Are there any symbols that you have a hard time reaching ($ for example)?

196

You are viewing a single comment

it’s even ISO standardized

Not only are there other ones that are also ISO standards when it comes to software layouts, but funny enough, when it comes to physical layouts, US keyboards normally follow an ANSI standard (not an ISO one), whereas many non-US keyboards typically follow a physical key layout known as "ISO Keyboard", so one could argue those are more of an "ISO" standard.

https://upload.wikimedia.org/wikipedia/commons/b/b2/Physical\_keyboard\_layouts\_comparison\_ANSI\_ISO\_KS\_ABNT\_JIS.png

right ctrl + left shift + 9 will do?

No keyboard layout uses ctrl like that..... in fact, I don't think you ever really need to press more than one modifier in any standard non-US keyboard. Unless you have a very advanced custom layout with fancy extra glyphs... but definitelly not for the typical programming symbols.

ISO keyboards actually have one more key and one more modifier ("AltGr", which is different from "Alt") than the ANSI keyboards.

In fact, depending on the symbol it might be easier in some cases. No need to press "shift" or anything for a # or a + in a German QWERTZ keyboard, unlike in the US one. Though of course for some other ones (like = or \) you might need to press 1 modifier.. but never more than 1, so it isn't any harder than doing a ) or a _ in the US layout.

Remind me again, how do you get {} or [] on that layout?

Same effort as getting &* and () on a US layout (so, modifier key + 7 8 9 0, respectively), the difference is you press AltGr instead of Shift as the modifier. And i'd argue its actually easier to press AltGr with the thumb than shift with the pinky.