Community
    • Login

    Unwanted Tab Insertions

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    6 Posts 3 Posters 2.1k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Jennifer ThompsonJ
      Jennifer Thompson
      last edited by

      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?

      Scott SumnerS 1 Reply Last reply Reply Quote 1
      • dailD
        dail
        last edited by

        Settings > Preferences > MISC. > Auto-indent

        Jennifer ThompsonJ 1 Reply Last reply Reply Quote 1
        • Scott SumnerS
          Scott Sumner @Jennifer Thompson
          last edited by

          @Jennifer-Thompson

          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.

          Jennifer ThompsonJ 1 Reply Last reply Reply Quote 0
          • Jennifer ThompsonJ
            Jennifer Thompson @Scott Sumner
            last edited by

            @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!

            Scott SumnerS 1 Reply Last reply Reply Quote 1
            • Scott SumnerS
              Scott Sumner @Jennifer Thompson
              last edited by

              @Jennifer-Thompson

              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.

              1 Reply Last reply Reply Quote 0
              • Jennifer ThompsonJ
                Jennifer Thompson @dail
                last edited by

                @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!

                1 Reply Last reply Reply Quote 1
                • First post
                  Last post
                The Community of users of the Notepad++ text editor.
                Powered by NodeBB | Contributors