Edit generate definitions live template

This is a feature that I love from Visual Assists that allows me to edit the template for code generation snippets, like the “Generate Definition” or “Document Method”.

I can't find a live template for this in Rider settings however, so I was wondering if it's possible to change them?

An example of what I'm trying to do for “Generate Definition”:

// Current style
void AMyGameActor::FancyMethod(uint8 const paramA, float const paramB, FString const paramC) const
{
	// ...
}

// Desired style
void AMyGameActor::FancyMethod
(
	uint8 const paramA,
	float const paramB,
	FString const paramC
) const
{
	// ...
}
0
1 comment

Hello Gonçalo,

Thank you for contacting Rider support.

As far as I understand, you want a specific code style to be applied to the code that you generate via "Generate Definiton", am I right?

There are no specific settings that would affect only the code generated by "Generate Definition". The code style for your code is determined by Code Style settings. For example, toggling the following options would make the preferred code style for your code to be as shown in the preview textbox:

There is no way to edit/append the ‘template’ for the generated code, unfortunately.

If that doesn't help or I misunderstood something, please let me know.

Have a nice day!

0

Please sign in to leave a comment.