Community
    • Login

    Unwanted Tab Insertions

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    6 Posts 3 Posters 2.4k Views 3 Watching
    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 Offline
      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 Offline
        dail
        last edited by

        Settings > Preferences > MISC. > Auto-indent

        Jennifer ThompsonJ 1 Reply Last reply Reply Quote 1
        • Scott SumnerS Offline
          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 Offline
            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 Offline
              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 Offline
                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

                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                With your input, this post could be even better 💗

                Register Login
                • First post
                  Last post
                The Community of users of the Notepad++ text editor.
                Powered by NodeBB | Contributors