locked
Avoiding automatic indentation in Visual studio 2013 code RRS feed

  • Question

  • Hello,

    Is there any way to turn off left-to-right auto-single-spacing/auto formatting (whatever you prefer to call it...) of codes lines for specific blocks of code (or for classes or files)? In the below block of code, I would like to insert tabs so that each parameter lines up vertically for each call to .Rows.Add. Currently, if I insert a Tab(s), when I move off of that line, the Tab(s) gets deleted, and I am left with a single space.

    Many thanks.

    Keith

                         L_V_Scalar_DataTable_Operations.Rows.Add(L_V_Scalar_String_Excel, C_A_G_C_F_OperationScope.G_E_C_OperationExcel.C_SendApplicantUpdateRegardingStatusOfCase, C_A_G_C_F_OperationScope.G_E_C_OperationExcel.C_SendApplicantUpdateRegardingStatusOfCase.ToString, False, C_A_G_C_F_OperationScope.G_E_D_ScopeExcel.C_WorkbookCurrent, C_A_G_C_F_OperationScope.G_E_D_ScopeExcel.C_WorkbookCurrent.ToString, C_A_G_C_F_OperationScope.G_E_D_ScopeExcel.C_WorkbookCurrent, C_A_G_C_F_OperationScope.G_E_D_ScopeExcel.C_WorkbookCurrent.ToString, False, "InvestmentAndLoanManager", True)

                         L_V_Scalar_DataTable_Operations.Rows.Add(L_V_Scalar_String_Excel, C_A_G_C_F_OperationScope.G_E_C_OperationExcel.C_AutoFitCellWidth, C_A_G_C_F_OperationScope.G_E_C_OperationExcel.C_AutoFitCellWidth.ToString, False, C_A_G_C_F_OperationScope.G_E_D_ScopeExcel.C_WorksheetsSelected Or C_A_G_C_F_OperationScope.G_E_D_ScopeExcel.C_WorkbookCurrent, C_A_G_C_F_OperationScope.G_E_D_ScopeExcel.C_WorksheetsSelected.ToString + "," + C_A_G_C_F_OperationScope.G_E_D_ScopeExcel.C_WorkbookCurrent.ToString, C_A_G_C_F_OperationScope.G_E_D_ScopeExcel.C_WorksheetsSelected, C_A_G_C_F_OperationScope.G_E_D_ScopeExcel.C_WorksheetsSelected.ToString, True, "All", True)

                         L_V_Scalar_DataTable_Operations.Rows.Add(L_V_Scalar_String_Excel, C_A_G_C_F_OperationScope.G_E_C_OperationExcel.C_ChangeStylesBackgroundColourThemeToGreenOrWhite, C_A_G_C_F_OperationScope.G_E_C_OperationExcel.C_ChangeStylesBackgroundColourThemeToGreenOrWhite.ToString, True, C_A_G_C_F_OperationScope.G_E_D_ScopeExcel.C_WorkbookCurrent, C_A_G_C_F_OperationScope.G_E_D_ScopeExcel.C_WorkbookCurrent.ToString, C_A_G_C_F_OperationScope.G_E_D_ScopeExcel.C_WorkbookCurrent, C_A_G_C_F_OperationScope.G_E_D_ScopeExcel.C_WorkbookCurrent.ToString, False, "All", True)

                         L_V_Scalar_DataTable_Operations.Rows.Add(L_V_Scalar_String_Excel, C_A_G_C_F_OperationScope.G_E_C_OperationExcel.C_ChevronateIndentedText, C_A_G_C_F_OperationScope.G_E_C_OperationExcel.C_ChevronateIndentedText.ToString, False, C_A_G_C_F_OperationScope.G_E_D_ScopeExcel.C_CellsSelected, C_A_G_C_F_OperationScope.G_E_D_ScopeExcel.C_CellsSelected.ToString, C_A_G_C_F_OperationScope.G_E_D_ScopeExcel.C_CellsSelected, C_A_G_C_F_OperationScope.G_E_D_ScopeExcel.C_CellsSelected.ToString, False, "All", True)

                         L_V_Scalar_DataTable_Operations.Rows.Add(L_V_Scalar_String_Excel, C_A_G_C_F_OperationScope.G_E_C_OperationExcel.C_Configure, C_A_G_C_F_OperationScope.G_E_C_OperationExcel.C_Configure.ToString, False, C_A_G_C_F_OperationScope.G_E_D_ScopeExcel.C_WorkbookCurrent, C_A_G_C_F_OperationScope.G_E_D_ScopeExcel.C_WorkbookCurrent.ToString, C_A_G_C_F_OperationScope.G_E_D_ScopeExcel.C_WorkbookCurrent, C_A_G_C_F_OperationScope.G_E_D_ScopeExcel.C_WorkbookCurrent.ToString, False, "All", True)


    R K Howard

    • Moved by Carl Cai Tuesday, February 4, 2014 2:32 AM
    Monday, February 3, 2014 6:46 PM

Answers

  • I would suggest you use one of the following two forums to post your question in.

    See Visual Studio General Questions Forum to left

    Visual Basic IDE

    The Visual Studio Editor Forum, listed under Visual Studio General Questions in the top link, was retired

    Retire the Visual Studio Editor Forum on June 5th 2012 supposedly even though it shows a couple of new posts added to it after that date.


    Please BEWARE that I have NO EXPERIENCE and NO EXPERTISE and probably onset of DEMENTIA which may affect my answers! Also, I've been told by an expert, that when you post an image it clutters up the thread and mysteriously, over time, the link to the image will somehow become "unstable" or something to that effect. :) I can only surmise that is due to Global Warming of the threads.

    • Proposed as answer by Carl Cai Tuesday, February 4, 2014 2:25 AM
    • Marked as answer by Just Karl Tuesday, February 11, 2014 11:35 PM
    Monday, February 3, 2014 7:31 PM

All replies