Guest User

AHK for Visual Studio alternative Find behaviour

a guest
Jan 12th, 2017
501
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #IfWinActive Microsoft Visual Studio ; Hotkeys for use in VS.
  2. {
  3.     ~^+F::  ; CTRL-SHIFT-F mapped to Find in Files in VS2015.
  4.     ~^f::   ; Keep this if CTRL-F is also mapped to Find in Files.
  5.         WinWaitActive ahk_class HwndWrapper, Find and Replace, 1
  6.         If ErrorLevel <> 0
  7.             Return
  8.         SendInput !lCurrent Document!n ; Set "where" to "Current Document" then return focus to Find.
  9.         Return
  10. }
  11. #IfWinActive ahk_class HwndWrapper, Find and Replace ; Hotkeys for use in Find dialog.
  12. {
  13.     Enter::SendInput !f     ; ENTER sends ALT-F, i.e. Find Next
  14.     +Enter::SendInput !p!p  ; SHIFT-ENTER sends ALT-P, i.e. Find Previous (had to be sent twice on mine to work properly)
  15. }
Advertisement
Add Comment
Please, Sign In to add comment