Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to suppress automatic indentation in VS 2019's VB?

Status
Not open for further replies.

IlyaRabyy

Programmer
Nov 9, 2010
571
US
I have posted this Q. some while ago (on 2021-09-01 to be exact), but haven't seen any answers, so I have to re-post it.
Here's the code window before I hit Enter, the cursor is at the end of line #96:
2021-12-23_VS2019_Unwanted_Indentation_01_qowgxk.jpg


Here's the code window after I hit Enter:
2021-12-23_VS2019_Unwanted_Indentation_02_adcgbh.jpg


I went to the Options and set indents like this:
2021-12-23_VS2019_Unwanted_Indentation_03_ss2xlv.jpg


It didn't change Editor's behavior. Since there's that advice (see img. above, in red rectangle), I went there and unchecked this option:
2021-12-23_VS2019_Unwanted_Indentation_04_ayhskz.jpg


And it still didn't change this hugely irritating (and counterproductive, if you ask me) behavior!
What's more, if I hit Enter again (when cursor still blinking at the end of that line # 97), the next line (#98) starts at pos. 1!
2021-12-23_VS2019_Unwanted_Indentation_05_b29roj.jpg


Could you, please, point me out what setting/option controls this behavior?

P.S. Merry X-Mass to those who celebrate it! :)

Regards,

Ilya
 
Don't bother yourself, colleagues, I found the cure.
It's in Text Editor\Basic\Advanced\Editor Help section:
2021-12-23_VS2019_Unwanted_Indentation_06_Resolved_jsc9sy.jpg


Turn off "Pretty listing" option (in green rectangle above) - and this behavior stops.
HTH.


Regards,

Ilya
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top