I wanted to enable the console, so I Googled how to do it and found that I could do it by putting -console in the launch options of the game. I did that, but now the console opens every time I start Dota 2. Is there a way to have it open if I push `, but not whenever I start the game up?


Yes, you can do that.

Go to …\Steam\SteamApps\common\dota 2 beta\dota\cfg\ and create a new file called autoexec.cfg next to config.cfg, so it won't get overwritten. Open it and add a line that says con_enable "1". That will enable the console even without adding -console to the launch settings.

Alternatively, you could add hideconsole to the configuration file to hide the console after it pops up, but I recommend the first method.

  • 4
    This is a bad solution because the config gets overwritten on dota startup. the safer solution is to put that code into a autoexec.cfg so it is written into config on every startup. – Wandang Jan 29 '14 at 11:38
  • 3
    @Wandang: Fixed. – Ullallulloo Jan 29 '14 at 22:11
  • 1
    I have just added -console -hideconsole in launch options and it enables the console but it is closed when game starts.. win win without having to dig into the folders ))) – Dmitry Matveev May 30 '15 at 7:25

Put +con_enable 1 into your launch options. The + makes it untouchable for the autoexec. It's the most elegant solution for your problem.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.