Skip to content

Instantly share code, notes, and snippets.

@MattBroyles
Last active September 6, 2018 10:57
Show Gist options
  • Save MattBroyles/d4bed26e626538219b53 to your computer and use it in GitHub Desktop.
Save MattBroyles/d4bed26e626538219b53 to your computer and use it in GitHub Desktop.
This is a simple AutoHotKey script that will auto-save Visual Studio on every press of the enter key.
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
#SingleInstance Force
; Target only Visual Studio
SetTitleMatchMode, 2
#IfWinActive Microsoft Visual Studio
; Send ctrl + alt + s on press of enter key (save all)
~Enter::
Send ^+s
#IfWinActive
@jaydeepkarena
Copy link

Super useful!

@jaydeepkarena
Copy link

is there any script which saves after x-seconds ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment