How to refine code in visual c #?

I saw this code recently

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 = 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 using visual C # 2010, do you know any shortcut or tool to do this automatically?

EDIT

I also have another related question if I want to align ads like this

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

- it seems impossible to do this using power tool extensions -

Do you have any ideas how to do this?

Many thanks for your help!

+7
c #
source share
1 answer

You might want to take a look at the Power Tools Performance extension for Visual Studio 2010 and its job alignment features.

+7
source share

All Articles