The P key is a built-in shortcut for creating a BeginPlay node in the Blueprint editor. Allowing developers to customize these hotkeys would greatly improve workflow efficiency.
In particular, the Print String node is used very frequently for debugging. It would be very convenient if the P key could be remapped to create a Print String node instead.
Hello and welcome to the Unreal forum. This is a post from another thread explaining how it is done, one of the examples is the print string node.
You can set up blueprint node shortcuts by going into the unreal install folder, engine folder, config folder, then look for the text file called BaseEditorPerProjectUserSettings. Open the file and look for the section called [BlueprintSpawnNodes]. You should be able to see the default ones that are set up(sequence, branch, delay, etc). To add new shortcuts you add them just like the default ones are setup, the only issue is finding out what gibberish you are supposed to write for the node you want to make a shortcut to. The main ones I like to have are add, subtract, multiply, and print screen…I will list them here. The Keys I used were used by the default shortcuts but I removed those, change key to whatever you like;
If you want to make a shortcut for a different node like Get player pawn, copy/paste the node into notepad. Look for the function reference and copy the second half of it starting at “Script”, for Get player pawn you would copy the line “/Script/Engine.GameplayStatics”, then add a : to it, then add the member name so it looks like this, /Script/Engine.GameplayStatics:GetPlayerPawn. Then you use that line to make the shortcut by pasting it after Class=, like this;
Some macros use macrograph instead of function reference and start at engine instead of script. Some macros look completely different and it’s hard to tell how to make a shortcut to them. May be the same way for some functions.