Community
    • Login

    How to stop curly braces moving left when I type?

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 2 Posters 505 Views 1 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.
    • bulrush15B Offline
      bulrush15
      last edited by bulrush15

      Notepad++ v8.1.5 (64-bit)
      Build time : Sep 26 2021 - 15:23:23
      Path : C:\Users\USER\bin\notepad++.8\notepad++.exe
      Command Line :
      Admin mode : OFF
      Local Conf mode : ON
      Cloud Config : OFF
      OS Name : Windows Server 2012 R2 Standard (64-bit)
      OS Build : 9600.21620
      Current ANSI codepage : 1252
      Plugins : mimeTools.dll NppConverter.dll NppExport.dll

      I’m on Notepad++ 8.1.5 on Windows Server 2012. We cannot update this server OS.

      When I’m editing a PERL .pl file and I type in

      if (something)
          {
          }
      

      Notepad++ changes it and I end up with this:

      if (something)
      {
      }
      

      When I type the curly braces the braces move left 4 spaces. How do I stop this for all files? I do not want any braces to move.

      Also I closed and opened my Perl file and the indents are now just one space. How do I get them back to 4 spaces

      Alan KilbornA 1 Reply Last reply Reply Quote 0
      • Alan KilbornA Offline
        Alan Kilborn @bulrush15
        last edited by

        @bulrush15

        Disable auto-indenting?:

        0f0fc24c-ab2f-423d-ba56-c0535c35eb73-image.png

        bulrush15B 1 Reply Last reply Reply Quote 3
        • bulrush15B Offline
          bulrush15 @Alan Kilborn
          last edited by

          @Alan-Kilborn Maybe I’m misunderstanding auto-indent. If I indent a line I want to keep that indent, but not do a backwards indent. I’ll try what you said.

          1 Reply Last reply Reply Quote 0

          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