Created
October 17, 2012 08:46
-
-
Save mnapoli/3904489 to your computer and use it in GitHub Desktop.
Autohotkey script for PHP developers on the BÉPO layout
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; PHP developer shortcuts for BÉPO keyboard layouts | |
; Need AutoHotkey_L to support unicode encoding (http://www.autohotkey.com/download/) | |
; "->" for PHP (when typing <Alt>+8) | |
!-:: | |
Send -> | |
return | |
; Add a semicolon at the end of the line (when typing <Alt>+,) | |
!,:: | |
Send {End}; | |
return | |
; Add " = " at the end of the line (when typing <Alt>+=) | |
!=:: | |
Send {End} ={Space} | |
return | |
; Add " {\n" at the end of the line (when typing <Alt>+y) | |
; Most IDEs will autocomplete to close the curly braces | |
!y:: | |
Send {End} {{}{Enter} | |
return | |
; Typing <Alt>+$ will autocomplete to "$this->" | |
!$:: | |
Send $this-> | |
return | |
; For writing Markdown documentation, typing <Alt>+% will end up with ``` (= code block) | |
!%:: | |
Send {`` 3} | |
return |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment