Autoexec.cfg is a file which CS:GO uses to execute commands and Binds along with the initial start of the game. It allows players to put all their commands in one file and execute it every time when the game starts. This way a player can save time and hassle as he doesn’t have to put every command (or binds) that he uses in the console every game.
You can set up an autoexec file very easily, it does not require much skill and anyone with little knowledge of PC can do it.
Steps to set autoexec.cfg for CSGO
1. The first thing that you have to do is to locate your installation directory of Steam. It is usually in your Program files folder which by default is here -> “C:\Program Files (x86)\Steam\“.
2. From there navigate to ‘userdata\%Your_UserID%\730\local\cfg‘.
3. The user ID is a unique number which represents your account. Click on it and if a file named autoexec.cfg is there then skip to Step 5 otherwise follow along.
4. When in the cfg folder, Right click>New>Text File, create a new text file and rename it to autoxec.cfg. Remember to remove the .txt extension from the name while renaming.
Once done, open the file in notepad and you are ready to put commands into the autoexec file.
5. With this you have created (or located) your autoexec cfg file, now it is time to put some lines of codes into it.
You can put as many codes as you link in the file. If you have some that you execute on every start of the round, you can put them in this file and it will auto-execute them every time you start the game.
Here are a few of the many Commands and Binds that are very useful and the ones that I use & recommend.
This command makes it so that your Radar always stay at the center position. It increases the visibility on the Radar and makes it so that you always stay at the center of the radar. This way you get to have more visibility of your surroundings on the radar.
bind shift "+speed; r_cleardecals"
This command, when activated, clears all the blood stains and bullet holes from the game. It is recommended that you bind it to a button for easy accessibility. Here it is bound to shift keys along with Shift key’s default command ‘+speed’.
BindToggle mouse5 voice_enable
This command Binds the Voice to enable command to one of the extra buttons(Top one) on your mouse. *more*
When the specified button(Bind/key) gets pressed, it mutes all the members in your team and vice-versa.
alias +shownet "+showscores; net_graphheight 64"
alias -shownet "-showscores; net_graphheight 9999"
bind TAB +shownet
This command is a little difficult to explain but I will tell you in easy words what it does. Whenever you will press the TAB key, along with the scoreboard, the net graph window will appear at the corner. It will vanish along with the scoreboard when you will lift your finger from the key.
As you can tell by the name, this binds shows what weapons and utility that your teammates have bought. It works even if they are behind a wall and is very helpful in situations when you need to know whereabouts of your teammates.
Now once you have entered all the commands and stuff to your autoexec.cfg file you have to add “host_writeconfig” at the end of your list of codes like shown below.
What it does is to tell the game to write the commands to the config file every time the game boots up. If you want to add additional Binds and stuff to the file you will have to add it before the ‘host_writeconfig’ line.
The autoexec.cfg automatically executes every time you run csgo but if for some reason if it doesn’t, do follow:
- Check if
host_writeconfigis at the end of the code.
+ exec autoexecin your launch options for csgo.
With this, I think it is the conclusion of my post on autoexec cfg file and some useful commands to put in it. If you have any other useful commands that you believe everyone should have in their autoexec, do put them down in the comments