How to Create an Autoexec for CS2: How to Find, Tune, Deploy
The question of how to make an Autoexec for CS2 remains as relevant in this version of the game as it was in all the previous ones. Manually entering console commands to set up for a comfortable game is a long and tiresome experience, leading many players to experiment and create custom files that autorun their preferred settings. Many complex binds and commands wouldn't work until you type them directly in the console each time you launch the game. A config file is an easy and consistent solution to this problem. In this article, we will tell you how to create a cfg file for CS2 and use it to play as comfortably as possible.
What is Autoexec.cfg in Counter-Strike?
The Autoexec.cfg file is used by the game to launch regular settings and custom configs accessible through console commands. The autoexec.cfg is automatically run when the game starts and can be changed according to the player’s preferences, with an option to use pre-downloaded CS2 pro configs to play like the best of the best.
If you create a custom CS2 config and install it, you can reduce ping and increase fps, as well as improve crosshair settings (size, shape, and color), mouse sensitivity, and set the optimal brightness and screen resolution. Making binds to keyboard shortcuts and altering map settings is also only possible with autoexec, making this tool essential if you aspire to become a competitive player.
However, creating a cfg file from scratch is quite a troublesome process, and some users might not know how to make an Autoexec file for CS2 correctly. Therefore, some novice gamers copy setting configs used by pro players. Most configurations are in the public domain, so you can easily download the best cfg for CS2 for free. However, even after acquiring the file, beginners frequently struggle to run it correctly. So, let's discuss how to make a cfg file for CS2 and launch it to avoid any potential confusion.
Where to Find the Counter-Strike Config File?
Before you learn how to create an Autoexec file in CS2, let’s find the file with all your settings first. When you’re starting CS2 for the first time, a default config is automatically created. However, instead of the game folder it is located in one of the Steam client root folders — UserData.
If you use a Steam client to log in from multiple accounts, finding the right file may become a challenge. However, there is one feature that makes it very easy to deal with configs on different accounts. This is how you can do it:
- Log into your Steam account and go to Inventory in your profile, then go to the Trade Offers menu.
- Select the “Who can send me Trade Offers?” item in the menu to the right. You will see the link to the trade URL in the lowest block of the screen menu.
- What we need is not the link itself but the number it includes. You don’t need to remember the whole number, just the last three or four digits.
- Now we open the UserData folder in the Steam folder (NOT the folder with your Steam games), and bingo — we see the subfolder with the number in the link, which actually contains the config files linked to the account.
Having opened the subfolder, we see various files associated with your Steam games profiles. We need the CS2 configs located in the 730 folder. The following sequence is simple: open the Local folder, then the CFG subfolder, and you’ll see the default config files:
If you have just installed the game, you need to launch CS2 at least once to get config files generated automatically.
What to Do If You Can’t Find a Cfg File On Your PC?
The most common reason why you can't find an exec cfg file is that it is hidden. Let's see how to display it:
Setting Windows parameters
The first thing you need to do is to disable the automatic hide for files in Explorer. To do this, open any folder, click on the three dots at the top, and choose Options.
Proceed to the “View” tab, find the “Hidden files and folders”, and choose “Show hidden files, folders, and drives”. Additionally, you can uncheck “Hide extensions for known file types” to easily modify file formats.
HOW TO OPEN A CFG FILE
Let’s continue our guide on how to set up Autoexec for CS2. To open a config file, you can use any text editor. We recommend downloading a convenient text editor, for example, the Notepad++ program. It is fast and free and is more useful because it performs more consistently compared to the standard WordPad Editor.
HOW TO CREATE A CS2 CONFIG
If you don’t want to mess up with the config file, you can create a CS2 Autoexec file manually from scratch:
- Create a txt document in the CS2 config folder (usually it’s ...> SteamLibrary > steamapps > common > Counter-Strike Global Offensive > game > csgo > cfg).
- Open the text document, click on File, and choose "Save As".
- Now, it is essential to give the file a proper name. First, choose the file type "All Files" and then give it any name. It is important that the name ends with ".cfg." (We recommend using Autoexec.cfg)
- Find a folder with configs on the Steam installation path and copy the information from the main config into your text file. Be sure to create backup files before changing anything.
- In order for the config to load into the game, you need to set it in the startup parameters of CS2. To do this, code the command "host_writeconfig X" in the developer's console, where X is the name of the config (e.g., host_writeconfig Autoexec.cfg).
To add key bindings to the config, you just need to add them in a text document. For example, to throw a flashbang, enter:
bind "key name" "slot7"
Later in the article, we will show an example config for you to understand how it's supposed to look.
HOW TO SYNC UPDATED CONFIG WITH CS2
Now, let’s find out how to use an Autoexec in CS2. Writing a host_writeconfig X command might be convenient to check if your build is working, but doing it every time you enter CS2 might be tiresome. We need to make our Autoexec cfg CS2 load automatically at the game launch. For that, we go back to our Steam client menu, go to the Library, right-click on Counter-Strike 2 in the library list, and click on Properties.
After that, click the Set Launch Options display button in the General tab. Enter the following command in the Set Launch Options menu:
This will autoload our recently created config file. Furthermore, there are a couple of useful changes you can make in this menu
-novid for skipping the intro,
-freq followed by the value of the maximum refresh rate of your display, which can be 60, 75, 120, or 144Hz.
EXAMPLE OF OUR CONFIGURATION FILE
Now that you know how to make a config in CS2, you may rename it with any acceptable name you like (except it still must have .cfg in the end), open the file for editing, and then copy or type in the binds or settings you need. For example, you may want to set up Autoexec commands in CS2 that are listed below:
bind "f" "slot7"
bind "q" "slot8"
bind "mouse4" "slot10"
bind "mouse5" "slot6"
Bomb drop bind
alias "+bomb" "slot3; slot5"
alias "-bomb" "drop; lastinv"
bind N +bomb
That’s it! Now you know every aspect of how to make an Autoexec for Counter-Strike 2. You can insert any settings you need in this config and change it as your playstyle evolves. A CS2 Autoexec can be very handy if you want to customize your game controls for quick and efficient gaming.