Create type action.
c#
If I press alt+enter on a non-existent type, the rider will offer me a list of actions, they have a “Create type ‘’ ” action, which will generate this code:
public class Class
{
private SomeType _type;//alt+enter -> Create type 'SomeType'
}
internal class SomeType
{
}Is there any way I can configure the generation of this code? I'm especially worried about the internal modifier, which always has to be rewritten.
Please sign in to leave a comment.
Hello!
There is no way to configure the generation of this code.
R#/Rider creates a class with the internal modifier as it is a default option in C#. You can use To Public quick fix to change the access level in one click.
Hi Alexandra Guk, thanks for the reply, you said that the internal modifier as it is a default option in C#, can I change this default option somehow, or is this also not available?
Hi!
I don't think this is possible, unfortunately.