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 (69 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!!!

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 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 webmaster@godotengine.org with your username.