Default location where Notepad++ config is stored:
- %appdata%\Notepad++
- Which resolves to c:\users\raj\AppData\Roaming\Notepad++
Regex documentation:
Config files:
- http://docs.notepad-plus-plus.org/index.php/Configuration_Files
- http://www.powercram.com/2009/12/add-open-with-notepad-to-context-menu.html
- config.xml
- contextMenu.xml
- langs.xml
- shortcuts.xml
- styler.xml
Important Plug-ins
- NppCrypt
- TextFX
- DSpellCheck
- Emmet
Important Shortcuts:
- Ctrl+F3: Select and Find next
- Ctrl+F2: Toggle bookmarks
- F2: Next bookmark
- Shift+F2: Previous bookmark
- F7: Open Search result window
Tip - Regex: Prefix all lines with a string
Before:
After:
Find and Replace Options:
Tip - Regex: Suffix all lines with a string
Before:
After:
Find and Replace Options:
Tip - Replace multiple space around a operator with single space
|
|
Tip - Regex: Remove all lines with word “hello” in it
|
|
Tip - Regex:
Before:
After:
|
|
Tip - Regex:
Before:
After:
|
|
Tip - Regex with parameter
|
|
Tip - How to “mark” multiple “words”
- Open Find dialog from the Search menu:
- Click on the Mark tab
|
|
Tip - Line up by Comma, equalSign or clipboard character
- TextFX > TextFX Edit > line up multiple lines by
Tip - Box Selection
- Hold down the Alt key while doing a selection
- Use can also just use keyboard: Shift+Alt+DownArrow
Tip - Multi-Editing(Clrl+Mouse click/selection)
- Enable Multi-Editing from Settings>Preferences>Editing>Multi-Editing Setting>Check the chekbox
- Press Ctrl and click at desired places to have multiple cursors appear.
- Continue typing as normal and typed characters will appear at each of the cursor location.
Tip - How To Insert Incrementing Numbers
- Use box selection to place cursor in front of multiple lines.
- Edit>Column Editor…>Number to Insert>Fill desired values
Before:
After:
How to find Nth character in Notepad++
- Press Ctrl+G and choose offset. Enter N.
Todo
1 FirstNameA LastnameB
100 FirstNameA LastnameB
1000 FirstNameA LastnameB
FirstNameA LastnameB
FirstNameA LastnameB
FirstNameA LastnameB
[0-9](.)
\1
1 FirstNameA LastnameB
100 FirstNameA LastnameB
1000 FirstNameA LastnameB
FirstNameA LastnameB, 1
FirstNameA LastnameB, 100
FirstNameA LastnameB, 1000
([0-9]) (.)
\2, \1
1 FirstNameA LastnameB
100 FirstNameA LastnameB
1000 FirstNameA LastnameB
LastnameB, FirstNameA
LastnameB, FirstNameA
LastnameB, FirstNameA
[0-9] ([a-zA-Z]) ([a-zA-Z]*)
\2, \1
1 FirstNameA LastnameB
100 FirstNameA LastnameB
1000 FirstNameA LastnameB
LastnameB, FirstNameA
LastnameB, FirstNameA
LastnameB, FirstNameA
[0-9] ([^ ]) (.*)
\2, \1
(.) - (.)
\1. \1. - \2