An Interest In:
Web News this Week
- April 1, 2024
- March 31, 2024
- March 30, 2024
- March 29, 2024
- March 28, 2024
- March 27, 2024
- March 26, 2024
June 21, 2021 10:00 pm GMT
Original Link: https://dev.to/equiman/javascript-operators-with-autohotkey-37kn
Javascript Operators with AutoHotKey
If you are a software developer and the major time write code in JavaScript (or TypeScript) this AutoHotKey can be useful.
with AutoHotKey you can remap some key behavior to write quick and easy all those operators used day to day.
You need to have installed AutoHotKey and create a file called js-remapkeys.ahk
with this script.
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.; #Warn ; Enable warnings to assist with detecting common errors.SendMode Input ; Recommended for new scripts due to its superior speed and reliability.SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.!7::Send {&}{&} ; Alt+7 -> &&!9::Send {(}{)}{ }{=}{>} ; Alt+9 -> () =>!+9:: Send {=}{>} ; Shift+Alt+9 -> =>!\::Send {|}{|} ; Alt+\ -> ||!=:: Send {=}{=}{=} ; Alt+= -> ===!+=:: Send {!}{=}{=} ; Shift+Alt -> !==!+,:: Send {<}{=} ; Shift+Alt+, -> <=!+.:: Send {>}{=} ; Shift+Alt+. -> >=!.:: Send {?}{.} ; Alt+. -> ?.!+/:: Send {?}{?} ; Shift+Alt+/ -> ??
Save the file and open it with AutoHotkey.
Finally, we will have a powered keyboard for JS/TS development.
Thats All Folks!
Happy Coding
Original Link: https://dev.to/equiman/javascript-operators-with-autohotkey-37kn
Share this article:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To