-
Notifications
You must be signed in to change notification settings - Fork 1
/
Visual Studio.ahk
50 lines (40 loc) · 978 Bytes
/
Visual Studio.ahk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
SetTitleMatchMode 2 ; title can contain the search text
;SetTimer, WatchActiveWindow, 300
;return
;WatchActiveWindow:
;SetTitleMatchMode 2 ; title can contain the search text
;IfWinActive, Microsoft Visual Studio
; Suspend Off
;else
; Suspend On
;return
#IfWinActive Microsoft Visual Studio
; Remap scroll lock to Ctrl+Break
sc046::Send ^{CtrlBreak}
; Create an empty anonymous delegate for c#
::/+=::
SendInput {RAW} += () => {};
SendInput {LEFT}{LEFT}{LEFT}{LEFT}{ENTER}{RIGHT}{ENTER}{UP}{RIGHT}{ENTER}
return
; Immediately replace >> with =>
;:*:>>::=>
;return
; Context shortcut macro
;:*:/cc::
;SendInput Context => Context
;return
; create a Context => Context for use in a linq expression
; :*:>>::
; SendInput {BACKSPACE}
; SendInput {Shift Down}{Control Down}{Left}{Shift Up}{Control Up}^c
; SendInput ^v => ^v
; return
; Start a region
::#r::
SendInput {RAW}#
SendInput region{SPACE}
return
; End a region
:*:#er::
SendInput {RAW}#endregion
return