Menu

Suggestion - Trim Function

2007-07-03
2012-11-13
  • Nobody/Anonymous

    These functions would make my life easier..

    Trim Selected Line
    Trim Selection
    Trim Selection (Remove CRLFs) to create a single line of code.

    I code an application that has a character limit where individual sql statements are stored, so removing all unnecessary space etc is a huge advantage.

     
    • pshute

      pshute - 2007-07-04

      Edit/Trim Trailing Spaces will trim every trailing space and tab in the file.  Plugins/TextFX Edit/Trim Trailing Space will trim just trailing spaces (not tabs) for the selected lines.  It can also work on the spaces at the right hand edge of a block selection.

      To remove newlines, I recommend using method 1.3 at http://notepad-plus.wiki.sourceforge.net/FindReplaceNewlineHowTo .

       
    • Nobody/Anonymous

      Trim Trailing Spaces does NOT trim trailing tab characters.

       
      • pshute

        pshute - 2007-07-05

        "Trim Trailing Spaces does NOT trim trailing tab characters. "

        You mean Edit/Trim Trailing Spaces?  It does for me, but I'm not running the latest version.  Perhaps it was changed.