/nppIndenture

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.

Primary LanguageC++GNU General Public License v3.0GPL-3.0

Indenture

version mit license build status

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.

Download

Latest version (x86 & x64 included)

Installation

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.

See Also

I recommend npp_tabs as an ideal companion plugin. It will remove one level of indentation on backspace as per the file-specific configuration.

Background

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.