0 votes

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.

in Engine by (72 points)

1 Answer

+1 vote
Best answer

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

+Space::
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

by (55 points)
selected by

You are just awesome!! Thanks!!!

Help AHK scripts do not work in GODOT

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).

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.