Using Rider for Unreal Engine how to build on save

I'm using Rider to work on an Unreal Engine project and every time I modify the source code I need the click the Build Solution then I thought is there any way to enable building every time I save? or another approach that makes it easier and faster?

I've tried searching online for this option but found no valuable blogs.

 

0
1 comment

Hello Kazm,

Thank you for contacting Rider support.

You can create a custom action(macros) that consists of two actions: Save All, Build Solution. Then assign a shortcut to that action and use it instead of regular Save. See the following instructions:

  • Select Edit | Macros | Start Macro Recording;
  • Select File | Save All;
  • Select Build | Build Solution (or Build Current Project);
  • Select Edit | Macros | Stop Macro Recording;
  • Name it as you wish, for example SaveAll&Build;
    • Optional: you can verify the actions that were recorded to macro from Edit | Macros | Edit Macro. It might be useful to ensure that your macro does not have any extra steps.
  • Open File | Settings | Keymap;
  • Find the macro you created (there is a search textbox you can use);
  • Assign a shortcut to it via Right Click | Add Keyboard Shortcut. Select Remove(in case a popup appears) to remove this hotkey from the previously assigned action. Also, you can call this action from `Edit | Macros | {your macro};

Now with this shortcut, you can call your macro that would save the modified files and invoke the Build.
Hope it helps.

Should you have any other questions or difficulties, please let me know.
Have a nice day!

0

Please sign in to leave a comment.