Cut trailing spaces?

  • Nobody/Anonymous

    Is this feature in yet?

    I find the option for automatically deleting trailing whitespaces very helpful, and would love to see it implemented in Notepad++

    • Don HO

      Don HO - 2004-07-24

      I don't think it's a good idea to modify user's source without user's permission (I agree with that it's convenient in some case). Therefore I won't implement this feature.


      • Nobody/Anonymous

        Hi Don,

        Can you implement it as an option in Preference dialog. I think there are many people who hate those trailing space! :)

        Thanks a lot.

        • Nobody/Anonymous

          If you do so, please cut trailing tabs as well.

          An option (has not to be default) to do this automatically before saving would be a great help, definitely. I just came from TextPad and this missing option drives me crazy.


    • Nobody/Anonymous

      I would need that feature to.
      But I think it should be switchable with an option and default to off.

      If this feature will not make it into the normal Notepad++, could someone please give me a hint where to add that function for myself? I think it should go to dosave() ?

      • Don HO

        Don HO - 2005-04-23

        It's already done in the feature release v3.0.
        However, it won't be executed automatically when you save file.

        If you want to have the feature like that, you have to add this method into dosave(). An alternative way is define your macro to do it.


    • Nobody/Anonymous

      Many thanks to you Don! Under Windows notepad++ is my favorite editor :)

      I'm looking forward to 3.0

      <same Nobody as the previous post ;)>

    • Morten Hattesen

      Morten Hattesen - 2005-05-09

      In any case, a Search/Replace...

      Find what: [ \t]+$
      Replace with: (blank)

      ... with "regular expression" checked, would remove any trailing whitespace (spaces and tabs).

    • Nobody/Anonymous

      It's possible to set shortcut ctrl+s to "trim and save" macro. But there's one annoying problem: when I use this shortcut and there is any symbol after cursor, that symbol is indenting by tabs. I hate this! Plz fix


Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks