Counter-Strike 2

Counter-Strike 2

Not enough ratings
Re-enable ALT+F4 (CS2 update)
By 󠁳endboss
This guide helps you enable ALT+F4 in CS2 by adding lines of code in your autoexec.cfg
   
Award
Favorite
Favorited
Unfavorite
Tutorial—Enable ALT+F4 with autoexec
alias +derp "bind f4 quit" alias -derp "unbind f4" bind alt +derp unbind f4 host_writeconfig
  1. Copy code above into autoexec.cfg.
  2. Launch CS2, start any game mode.
  3. Use ALT+F4 key combination whenever needed.
13 Comments
Humerus Feb 27 @ 5:24am 
Thank you so much! Doesn't work in main menu, works only in a match. and if you don't know how to create "Autoexec.cfg" watch this video: https://www.youtube.com/watch?v=-TpbiW-1GMI
󠁳endboss  [author] Jan 30 @ 1:00pm 
thank you for the confirmation! :HappyPACMAN:
Windy Jan 30 @ 10:24am 
this works, thank you. LeMaid just dumb lmao :steamhappy:
George Droyd Dec 5, 2024 @ 4:06pm 
nigga thats hecka complex
@madbruv Apr 29, 2024 @ 2:37am 
alias ""leavegame" "quit"";unbind p;bind p "leavegame"
󠁳endboss  [author] Apr 24, 2024 @ 8:20am 
Make sure, when in Notepad, to save the file as type "All files (*.*)" and not "Text documents (*.txt)". When you save it as a text document, the file would eventually be named "autoexec.cfg.txt". This is not what you want.
When you open Explorer, go to File, then Change folder and search options. In the second tab "View" uncheck "hide extensions for known file types". This way you can see the file extensions and confirm that your autoexec is actually named autoexec.cfg and not autoexec.cfg.txt.
HyperTatarin Mar 31, 2024 @ 12:31pm 
Doesn't work for me. There was no autoexec.cfg file in the folder, so i created one and entered the text like you advised below but it didn't help.
󠁳endboss  [author] Feb 24, 2024 @ 11:05pm 
steamapps\common\Counter-Strike Global Offensive\game\csgo\cfg
if you don't find it here, just create a text file and name it autoexec.cfg
Allm4cht Feb 24, 2024 @ 3:56pm 
Where is autoexec.cfg?
Windows search wont find it in my game folder.
󠁳endboss  [author] Jan 6, 2024 @ 3:16pm 
it works while in-game