문제

How can I edit the behavior of the SmartConstructor TextCommand?

For class variables:

public string MyVar1;
public string MyVar2;

SmartConstructor generates

public Class1(string myVar1, string myVar2)
{
    MyVar1 = myVar1;
    MyVar2 = myVar2;
}

Is there any way to modify the code template so that it follows this coding standard instead?

public Class1(string pMyVar1, string pMyVar2)
{
    MyVar1 = pMyVar1;
    MyVar2 = pMyVar2;
}

Many Thanks.

도움이 되었습니까?

해결책

Go to the DevExpress -> Options... menu.

Navigate to the Editor | Code Style | Identifiers option page.

Modify the Parameters naming style per your requirements.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top