Unwanted Tab Insertions
-
I am adding comments to some C++ files. I place my cursor at the end of a line and click Enter to start a new line. The cursor is indented to match the previous line and tabs are placed before the line. I have looked all though preferences and cannot see where to tell the app not to inherit the previous line’s indentation (which were created with whitespaces by the way). Can someone please help?
-
Settings > Preferences > MISC. > Auto-indent
-
Perhaps also you wanna check Settings (menu) -> Preferences… -> Language (box on left) -> Tab Settings box (choose
c
) then make sure Replace by space is checked? I got the feeling you don’t like tab characters…but maybe I read that wrong. -
@Scott-Sumner
My issue is that when I hit Enter, a new line is started indented with tabs to meet the line above. It’s not about tabs, it’s that I am hitting tab. Anyhow, I tried changing the tab default value for C to space. No change. I also tried that with Normal Text but no change. Thanks for trying though I will try anything! -
Did you try @dail 's suggestion? He didn’t say it explicitly but you want to uncheck the Auto-indent checkbox he pointed you to.
-
@dail THAT DID IT!! Thank you!! @Scott-Sumner I didn’t see his suggestion until after I saw yours. Then I had to wait to post my thanks as I am but a fledgling on here.
Thanks community!