NB! It seems this console command is not compatible with CS2.
Command Profile

BINDTOGGLE

CS:GO

This command assigns a hotkey (key on your keyboard, or button on your mouse) to switch through the various values a specified console command has (when pressed or clicked). This is useful for setting up binds that toggle a certain feature. For example,"voice_enable" would be toggled between 0 and 1 (disabled and enabled).

Syntax
BindToggle [Bind Key] ["Bind Command"]

Description

This command assigns a hotkey (key on your keyboard, or button on your mouse) to switch through the various values a specified console command has (when pressed or clicked). This is useful for setting up binds that toggle a certain feature. For example,"voice_enable" would be toggled between 0 and 1 (disabled and enabled).

How To Use BindToggle

  1. Enable the developer console in Counter-Strike settings.
  2. Open the console with the tilde key (~).
  3. Enter BindToggle [Bind Key] ["Bind Command"], replacing bracketed arguments with the value you want, then press Enter.

This legacy command is not currently listed as compatible with Counter-Strike 2.

Syntax And Arguments

BindToggle [Bind Key] ["Bind Command"]
Bind Key This is the key you want to assign your bind toggle command to.
"Bind Command" The console command you want to assign to the hotkey. Be sure to enter it without any numbers/values after it.

Related Commands