


In this guide, we will cover creating a personal autoexec.cfg configuration file for Counter-Strike 2 (CS2), focusing on binds for quick weapon and equipment purchases. It can also be used for setting up the CS2 crosshair and similar settings.
autoexec.cfg is a configuration file, also known as CS2 config, which stores user settings in the form of commands. This file is automatically loaded when CS2 starts, allowing you to avoid manually entering commands every time.
Go to the game folder: X:\SteamLibrary\steamapps\common\Counter-Strike Global Offensive\game\csgo\cfg
Create a new text document and rename it to autoexec.cfg.
Open the file using a text editor, for example, Notepad.
Binds allow you to quickly buy weapons and equipment by pressing a single key. This is especially useful at the start of a round to save time.
Command format:bind "key" "buy item_name"
Key | Name in CS2 |
---|---|
0 | kp_0 |
1 | kp_1 |
2 | kp_2 |
3 | kp_3 |
4 | kp_4 |
5 | kp_5 |
6 | kp_6 |
7 | kp_7 |
8 | kp_8 |
9 | kp_9 |
/ | kp_divide |
* | kp_multiply |
- | kp_minus |
+ | kp_plus |
. | kp_decimal |
Enter | kp_enter |
Note that in CS2, the numpad key names have been updated compared to CS:GO.
bind "kp_1" "buy tec9" bind "kp_2" "buy galilar; buy famas" bind "kp_3" "buy deagle" bind "kp_4" "buy ak47; buy m4a1" bind "kp_5" "buy defuser" bind "kp_6" "buy awp" bind "kp_7" "buy smokegrenade" bind "kp_8" "buy flashbang" bind "kp_9" "buy hegrenade" bind "kp_plus" "buy vesthelm"
You can customize the binds to match your preferences and used equipment.
alias "+jumpthrow" "+jump; -attack" alias "-jumpthrow" "-jump" bind "ALT" "+jumpthrow"
This bind allows you to throw CS2 grenades accurately during a jump, which is useful for certain tactical situations.
bind "q" "use weapon_knife; slot1"
Allows you to quickly switch between your main weapon with CS2 skins and CS2 knife, which can help reset the shooting animation.
After creating and setting up autoexec.cfg, make sure the file is saved in UTF-8 without BOM encoding. To automatically load this file when launching CS2, add the following line to the CS2 game launch options in Steam:
+exec autoexec.cfg
This will ensure your settings are automatically loaded each time you start the game.
Setting up binds in CS2 through autoexec.cfg helps optimize gameplay and increase efficiency in matches. Experiment with different settings to find what works best for you.