Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
June 21, 2021 10:00 pm GMT

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.

js-ahk

Thats All Folks!
Happy Coding

Buy me a coffee


Original Link: https://dev.to/equiman/javascript-operators-with-autohotkey-37kn

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To