Indenture is a Notepad++ plugin that detects indentation used for each file opened and automatically configures Notepad++ to match. Supported options are tabs and 2 to 8 spaces.
Latest version (x86 & x64 included)
Extract the appropriate version of nppIndenture.dll
(x86 or x64) into the appropriate
plugin
folder:
- For 32bit: extract from
x86
into%ProgramFiles(x86)%\Notepad++\plugins
. - For 64bit: extract from
x64
into%ProgramFiles%\Notepad++\plugins
. - If user plugins enabled and installing per-user, change the destination to
%APPDATA%\Notepad++\plugins
.
I recommend npp_tabs as an ideal companion plugin. It will remove one level of indentation on backspace as per the file-specific configuration.
This plugin is forked from nppAutoDetectIndent by Chocobo1. The original plugin struggles (more) with space-indented files containing few lines only indented once, block comments that cascade lines one space further, and other content errors or inconsistencies.
When the original author would not readily recognize the problem, it became more expedient to maintain an independent fork, which is now renamed to prevent future confusion between the two.