I tried to enable the developer console in the options menu in Portal 2, but it doesn't work out of the box because I'm using a german keyboard and the
~ key is not recognized.
I tried to edit the
config.cfg and replace the keybinding from ` to \, but my changes are reset when I start Portal 2 again. How can I permanently change the keybinding for the developer console?