Toggle Context Menu

How do I do it?

What do I put in the autoexec.cfg?

What do you mean “Toggle Context Menu”? Do you want to open it and make it stay? Do want to disable it? Elaborate.

I want to open it and make it stay until I press the key again

Find any text field and press on it, or type +menu_context into console.

It didn’t work. Is there any way to do it in autoexec.cfg

It actually does work, but only when you actually try it in game.

put this in autoexec.cfg

bind c cmon;
alias cmon "+menu_context; bind c cmoff";
alias cmoff "-menu_context; bind c cmon";

Please note this MAY break compatibility with some gamemode such as TTT the (might) check for what is bound to +menu_context.