Search code examples
c#unity-game-enginerider

How to Remove "Throw new System.NotImplementedException()" lane, when implement an interface in Rider?


I use the Jet Brains Rider compiler and I want to remove the default lane related to implement. Because in some implementations, the number of methods is large and if they are not deleted, they give an error in Unity. If you know the address of this setting, please help.

public class CharacterA : MonoBehaviour, ICharacterController
{
    public void UpdateRotation(ref Quaternion currentRotation, float deltaTime)
    {
        throw new System.NotImplementedException(); // <=== remove this lane from default setting
    }
}

Solution

  • The option that you are looking for is in Editor > Members Generation:

    enter image description here

    Use Return default value instead to solve your problem.