Skip to content

Instantly share code, notes, and snippets.

@jaydeepkarena
Forked from MattBroyles/VS-SaveOnEnter.ahk
Last active October 30, 2018 04:46
Show Gist options
  • Save jaydeepkarena/44d43a3f2ddd6de1e28ba5d8d7461d86 to your computer and use it in GitHub Desktop.
Save jaydeepkarena/44d43a3f2ddd6de1e28ba5d8d7461d86 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.
; Add icon - just place icon file in same forlder
Menu, Tray, Icon, fire.ico
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 + shift + s on press of enter key (save all)
~Enter::Send ^+s
; Send ctrl + shift + s on press of ";" semicolon (save all)
;~;::Send ^+s
#IfWinActive
;added new test commnet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment