How to set shortcut to write simple code?!

PsychoNINJA

Member
Joined
Sep 18, 2021
Messages
12
Programming Experience
1-3
Hello dear csharpforums.net community,

I have a question, How can I set a shortcut on my keyboard to paste or write a simple code?
I would like to press any key that I set then write this code's for me:

C#:
[Command("")]
public void NAME(Player player) {

}

I want to write this code exactly for me when I pressed that Keybind I set

and finally sorry for my bad english :)
 
I can recommend AutoHotKey (AHK). It is very powerful and versatile, and comes with tons of functionality allowing you to do almost anything, in any program, with one keystroke.
Sheesh.… I sound like a sales rep 😁 But really I'm not, just a long-standing happy user.
 
Back
Top Bottom