GermanDev is a customized German QUERTZ keyboard layout designed for software development on Macs. Pressing one of the option keys while typing d
, f
, j
or k
will give you square braces (eckige Klammern) and curly braces (Mengenklammern).
⌥
+ d
= [
⌥
+ f
= [
⌥
+ j
= {
⌥
+ k
= }
- Put a copy of GermanDev.bundle into your /Library/Keyboard Layouts folder.
- open System Preferences
- click Language & Region › Keyboard Preferences... › Input Sources... and add GermanDev
- change the little flag in the menu bar
Several text editors use square braces as hot keys for block indentation. This leads to rather bizarre triple-key shortcuts on German keyboards.
I prefer using ⌥
+ ⇥
and ⌥
+ ⇤
(option + shift + tab) instead. TextMate supports these shortcuts out of the box (see manual section 4.6.1). Other text editors might need a little help. If you want to use these shortcuts in Xcode, copy the file Default.idekeybindings to ~/Library/Developer/Xcode/UserData/Keybindings.