Answered by:
Avoiding automatic indentation in Visual studio 2013 code

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
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.
Monday, February 3, 2014 7:31 PM
All replies
-
I would suggest you use one of the following two forums to post your question in.
See Visual Studio General Questions Forum to left
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.
Monday, February 3, 2014 7:31 PM -
-
Thanks, I've now reposted.
R K Howard
You may want to post the same question in the Visual Basic IDE link also. You may end up receiving an answer in this post too.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.
Monday, February 3, 2014 9:50 PM -
Thanks, I've now reposted.
R K Howard
Hi,
Welcome to MSDN.
In order to in addition to Mr. Monkeyboy, I don't think the Visual Basic IDE forum is a good place for your issue.
>>I don't think so, but maybe you could tidy it up using a With...End With Statement for C_A_G_C_F_OperationScope. If you're lucky, that will persuade the lines to line up tidily.<<
And the first suggestion as the words above in your new thread does make sense, and as far as I know there isn't such way to handle this requirement.
As Mr. Monkeyboy suggested, please just focus on the new thread you posted.
Thanks for your understanding.
Regards.
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.Tuesday, February 4, 2014 2:32 AM