• Login
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.
  • J
    Jennifer Thompson
    last edited by Dec 6, 2017, 6:42 PM

    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?

    S 1 Reply Last reply Dec 6, 2017, 6:48 PM Reply Quote 1
    • D
      dail
      last edited by Dec 6, 2017, 6:44 PM

      Settings > Preferences > MISC. > Auto-indent

      J 1 Reply Last reply Dec 6, 2017, 8:04 PM Reply Quote 1
      • S
        Scott Sumner @Jennifer Thompson
        last edited by Dec 6, 2017, 6:48 PM

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

        J 1 Reply Last reply Dec 6, 2017, 7:16 PM Reply Quote 0
        • J
          Jennifer Thompson @Scott Sumner
          last edited by Dec 6, 2017, 7:16 PM

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

          S 1 Reply Last reply Dec 6, 2017, 7:21 PM Reply Quote 1
          • S
            Scott Sumner @Jennifer Thompson
            last edited by Dec 6, 2017, 7:21 PM

            @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
            • J
              Jennifer Thompson @dail
              last edited by Dec 6, 2017, 8:04 PM

              @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
              6 out of 6
              • First post
                6/6
                Last post
              The Community of users of the Notepad++ text editor.
              Powered by NodeBB | Contributors