开发者

How to refine code in visual c#?

开发者 https://www.devze.com 2023-01-13 02:47 出处:网络
recently I have seen this code arrMove= new List<int[]>(4); m_pppiCaseMoveDiagLine= new int[64][][];

recently I have seen this code

        arrMove                         = new List<int[]>(4);
        m_pppiCaseMoveDiagLine          = new int[64][][];
        m_pppiCaseMoveDiagonal          = new int[64][][];
        m_pppiCaseMoveLine              = new int[64][][];
        m_ppiCaseMoveKnight             = new int[64][];
        m_ppiCaseMoveKing     开发者_StackOverflow          = new int[64][];
        m_ppiCaseWhitePawnCanAttackFrom = new int[64][];
        m_ppiCaseBlackPawnCanAttackFrom = new int[64][];

but i couldn't know how to make my code look like this one using visual c# 2010 ,do you know any shortcut or tool to do that automatically?.

EDIT

i have also another related question, if i want to align declarations like this

    private PlayerColorE                m_eNextMoveColor;
    private int[]                       m_piPiecesCount;
    private Random                      m_rnd;
    private int                         m_iAttackedPieces;

-it seems that it can't be done using prductivity power tools extension-

do you have any idea how to do it?

thanks alot for your help!


You might want to take a look at the Productivity Power Tools extension for Visual Studio 2010 and its Align Assignments feature.

0

精彩评论

暂无评论...
验证码 换一张
取 消