Easier way to code with snake_case with windows keyboard

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By pengyou

Hi guys. I realized every time i will need to pressed ‘shift’ and ‘-’ for typing underscore ‘__’, which is very frequently used in snake_case coding style.

May I know if is it possible to configure my keyboard, so that i will be able to type underscore ‘__’ with only one key?

I am using windows laptop for codings.

:bust_in_silhouette: Reply From: harrisonschultz

I use “shift” + “space” for underscores. On windows you will have to download some external program unfortunately to get this capability. Two popular programs are “WinHotKey” (never used it myself) “AutoHotkey”

For AutoHotKey
Configuring AutoHotkey is a little difficult but l have done that for you if you want to use my same hotkeys (“shift” + “space” )

Just create a file with file extensions “.ahk” in notepad
Paste this text

Send, _

Save it, then just double click it to run it. Then ahk will run in the background and fire that script when you press those two keys

You are just awesome!! Thanks!!!

pengyou | 2021-02-04 14:41

I have tried to use AHK. But immediately I noticed that all my keys are locked even PRINT key is gone that I use for screenshots. I can not use any mouse movement.

I need AHK to make very high speed, fast modulatable scripts to do thousands of operations.

GODOT has too many hooks and unfortunately no reasonable description of what causes it. I have searched the entire internet for a solution but found nothing. (YOUTUBE, REDDIT, STEAM COMMUNITY and all posts here).

devions | 2022-09-20 10:27