Notepad++ Settings

2 minute read

Description:

This post is just for my notes on my Notepad++ install.

To Resolve:

  1. Go to Style Configurator – Obsidian

    1
    2
    3
    
    Verdana 12
    Check box = Enable Global font
    Check box = Enable Global font size
    
  2. Enable the Explorer plugin and set to my scripts path.


Tips and Tricks

Sort by line and remove the duplicate lines at the same time

  1. Get the TextFX plugin. This used to be included in older versions of Notepad++, but if you have a newer version, you can add it from the menu by going to Plugins => Plugin Manager => Show Plugin Manager => Available tab => TextFX => Install. In some cases it may also be called TextFX Characters, but this is the same thing.
  2. Then check boxes and buttons required will now appear in the menu under: TextFX => TextFX Tools.
  3. Make sure sort outputs only unique is checked.
  4. Next, select a block of text (Ctrl+A to select the entire document). Finally, click sort lines case sensitive or sort lines case insensitive

To Replace Spaces on Each Line (this happens when you copy multiple columns from Excel to Npp):

  1. Copy the amount of spaces in between each word to your clipboard
  2. Press Ctrl+A to select all text
  3. Press Ctrl+H to bring up find/replace
  4. Paste in the blank spaces in the find what dialog
  5. In the replace with, make sure it is completely blank
  6. Select the option to replace all

To remove trailing spaces for each line:

Edit – Blank Operations – Trim trailing space

To remove leading space for each line:

Edit – Blank Operations – Trim leading space

To remove empty lines:

Edit – Line Operations – Remove Empty Lines
or in Extended mode:
Search: \n\r
Replace: (blank)

To sort lines alphabetically:

Edit – Line Operations – Sort Lines Lexi Ascending

NPP: Remove all lines that start with specific word

Go to the search menu Ctrl+F and open the “Mark” tab. Check “Bookmark line” (if there is no “Mark” tab update to the current version). Enter your search term (Select Regex and ^YourWordHere) and click “Mark All” - All lines containing the search term are bookmarked. Now go to the Menu “Search => Bookmark => Remove Bookmarked lines”

To add a Sentences In Middle Of Text Blocks

Find: DirXML Replace: changeType: modify\nreplace: extensionAttribute10\nDirXML

  • For the following example:

  • Before:

1
2
3
   dn: cn=mxt8167,ou=Student,o=company
   DirXML-ADContext: CN=mxt8167,OU=Student,DC=company,DC=com
   extensionAttribute10: Fall_2011
  • After:
1
2
3
4
5
   dn: cn=mxt8167,ou=Student,o=company
   changetype: modify
   replace: extensionAttribute10
   DirXML-ADContext: CN=mxt8167,OU=Student,DC=company,DC=com
   extensionAttribute10: Fall_2011

Comments