Notepad++
Custom Code Highlighting per file type
Example for log files made by log4j, taken from [1]
- Download this XML file
- Import the file: Language → Define your language... → Import
- Restart the application.
Multi Rename of files using Notepad++
- get a list of source file e.g. using dir /p in cmd and copy to Notepad++
S01E01.mkv S01E02.mkv S01E03.mkv S01E04.mkv
- gather list of target file name addons
TitleE01 TitleE02 TitleE03 TitleE04
- use column-mode-editing to generate duplicate file names per line
S01E01.mkv S01E01.mkv S01E02.mkv S01E02.mkv S01E03.mkv S01E03.mkv S01E04.mkv S01E04.mkv
- use column-mode-editing to add "ren " to each line and to modify target name
ren S01E01.mkv S01E01.TitleE01.mkv ren S01E02.mkv S01E01.TitleE02.mkv ren S01E03.mkv S01E01.TitleE03.mkv ren S01E04.mkv S01E01.TitleE04.mkv
save as .cmd file and execute
Nice Plugins
Compare
Compare to files side by side. See [2]
NppExec
F6 = excecute CTRL+F6 = re-excecute wuth same settings
Example Commands:
npp_save "$(FULL_CURRENT_PATH)" npp_save cd $(CURRENT_DIRECTORY) perl $(FILE_NAME)
UniversalIndentGUI
Alternative: see TextFX below
CRTL+ALT+SHIFT+J = Code Formating
Hint: the error message
Returned error message: Process failed to start
Can be caused by missing write permissions for C:\Program Files (x86)\Notepad++\plugins\uigui see [3]
Perl-Tidy für Notepad++ für UniversalIndentGUI
Install via
perl -MCPAN -e shell install Perl::Tidy
(maybe you have to set the proxy server first) [4]
set HTTP_proxy=http://myproxy.contosocom:8080 set FTP_proxy=http://myproxy.contosocom:8080
TextFX DEPRICATED
- Tools -> Sort Lines --> now use Menu Edit → Line Operations → Sort Lines Lexicographically Ascending / Descending
- Escape " -> \" etc.
- Code Indent via TextFX > TextFX Edit > Reindent C++ code
I used to map shortcut Alt+F7 to it
XML Tools
CRTL+ALT+SHIFT+B = XML Formating
Analyse Plugin
Usefull for complex analyses e.g. of large log files