Skip to content

Instantly share code, notes, and snippets.

@mnapoli
Created October 17, 2012 08:46
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mnapoli/3904489 to your computer and use it in GitHub Desktop.
Save mnapoli/3904489 to your computer and use it in GitHub Desktop.
Autohotkey script for PHP developers on the BÉPO layout
; 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