可以设置autoformat来维护VS2015中命名参数的间距吗?

时间:2015-08-11 13:52:27

标签: c# visual-studio-2015

我正在使用visual studio 2015并希望自动格式化使我的代码执行它不做的事情,排列命名参数的值。以下是autoformat的作用:

    EMRSQL_InsertUpdate_Lab_Result(-1, Convert.ToInt32(SplitResult[1])
                                     , intEmpID
                                     , intPtID
   , strItemName: GetXMLInnerTextNullable(Node, "ResultDescription").ToString()
   , datItemDate: GetXMLInnerTextNullable(Node, "ResultEffectiveTime").ToString()
   , strFillerOrderAccessionID: GetXMLInnerTextNullable(Node, "ID").ToString()
   , strResultValue: GetXMLInnerTextNullable(Node, "ResultValue").ToString()
   , strResultUnits: GetXMLInnerTextNullable(Node, "ResultUnit").ToString()
   , strResultFlag: InterpretationCode
   , strServiceID: LOINCServiceID
   , strServiceIDType: ServiceIDType);

这就是我想要它做的事情:

Result = EMRSQL_InsertUpdate_Lab_Result(-1, Convert.ToInt32(SplitResult[1])
                                          , intEmpID
                                          , intPtID
, strItemName:                GetXMLInnerTextNullable(Node, "ResultDescription").ToString()
, datItemDate:                GetXMLInnerTextNullable(Node, "ResultEffectiveTime").ToString()
, strFillerOrderAccessionID:  GetXMLInnerTextNullable(Node, "ID").ToString()
, strResultValue:             GetXMLInnerTextNullable(Node, "ResultValue").ToString()
, strResultUnits:             GetXMLInnerTextNullable(Node, "ResultUnit").ToString()
, strResultFlag:              InterpretationCode
, strServiceID:               LOINCServiceID
, strServiceIDType:           ServiceIDType);

0 个答案:

没有答案