forked from denolfe/AutoHotkey
-
Notifications
You must be signed in to change notification settings - Fork 0
/
VisualStudio.ahk
70 lines (61 loc) · 1.14 KB
/
VisualStudio.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
VSNamingMode := 0
#IfWinActive Microsoft Visual Studio
^+;::
SendInput, {End};`n
Return
;; Naming Mode
^+u::
If (VSNamingMode)
{
SplashImage,,x0 y0 b fs12, VS Naming Disabled
SetTimer, VSNamingSplash, -500
VSNamingMode := 0
}
Else
{
VSNamingMode := 1
SplashImage,,x0 y0 b fs12, VS Naming Enabled
}
Return
$Space::
If (VSNamingMode)
SendInput, _
Else
SendInput, {Space}
Return
#If
#If WinActive("Debugging") and WinActive("Microsoft Visual Studio")
;; Set Next Statement
MButton::
kDown := A_TickCount
KeyWait, % A_ThisHotkey
If ((A_TickCount-kDown)>400)
SendInput, {LButton}^+{F10}
Else
SendInput % "{" A_ThisHotkey "}"
Return
;; Hold Mouse4 to run to line
;; Else
;; Mouse4 -> F10
XButton1::
kDown := A_TickCount
KeyWait, % A_ThisHotkey
If ((A_TickCount-kDown)>400)
{
SendInput, {LButton}{F9}
Sleep, 300
SendInput, {F5}
Sleep, 300
SendInput, {F9}
}
Else
SendInput, {F10}
Return
XButton2::F11 ;Mouse5
;; Call Stack Navigation
^XButton1::SendInput !^c{Down}{Enter}
^XButton2::SendInput !^c{Up}{Enter}
#If
VSNamingSplash:
SplashImage, off
Return