Ctrl + K,Ctrl + S(环绕声) - > #region添加了一个pragma声明

时间:2016-07-11 16:43:47

标签: visual-studio-2015 code-snippets

从VS2015开始,如果我执行了public static byte[] getSecureMungedAddress() { byte[] address = null; try { address = getMacAddress(); } catch (SocketException e) { // address will be set below } if (!isValidAddress(address)) { address = constructDummyMulticastAddress(); } byte[] mungedBytes = new byte[6]; SecureRandomHolder.INSTANCE.nextBytes(mungedBytes); for (int i = 0; i < 6; ++i) { mungedBytes[i] ^= address[i]; } return mungedBytes; } Surround With代码段,则会创建此语法:

#region

之前,在VS2013及更早版本中它会这样做:

#pragma region MyRegion 

#pragma endregion

知道我怎么能把它变成没有编译的版本?

0 个答案:

没有答案