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?
2 Answers
Do the following, just tested, steps:
- Add the parameter
-consoleto Launch Settings of Portal 2. - Launch Portal 2 (developer console should be already there).
- Write and execute in console:
bind f11 toggleconsole - Test that pressing F11 toggles the console.
- Now exit Portal 2 and relaunch it. Everything should work as expected.
Create autoexec.cfg in your cfg folder, with the contents:
bind \ toggleconsole
If this file does not automatically execute, try putting +exec autoexec.cfg in your launch options.