Open Counter-Strike 2
Go to Settings
Open the Game tab
Set Enable Developer Console to Yes
Press the tilde key `~` to open the console
If `~` does not work, try the key below Esc or the key bound to console in your keyboard layout
To bind a key manually, use the console command `bind “KEY” “toggleconsole”`
