I'm looking for a plugin that can indent code (HTML, CSS, PHP, ASP, etc.) in [Notepad++](https://notepad-plus-plus.org/).

In Visual Studio (and a few other Microsoft editors), you can auto format a document with a simple `Ctrl` + `K`, `Ctrl` + `D`. This inserts line breaks and tabbing automatically.

Is there a similar feature in Notepad++?

**Requeriments**

* Work with Notepad++
* Windows 7+
* Must implement shortcut for it
* No too "heavy" (not more than Notepad++ itself)

**Optional**

* May have other features
* Able to define how to indent each language

---

I looked and couldn't find any "inbox" feature that covers it. I also gave a try using:

* [**Code alignment** for Notepad++](http://www.codealignment.com/ForNotepadPlusPlus.html). There are good tools in the Code Alignment, but not what I'm looking for. Below what I'm searching.
* **TextFX** didn't the job as I expected, maybe I didn't use as I should have?

![Screenshof TextFX’s menu](https://i.stack.imgur.com/bvsJS.jpg)

---

```
// Some examples using PHP, but I want it to be used in other languages like ASP as well as CSS and HTML
<?php
    public function x()
    {
        $foo = 'test';
            $bar = 1;
return $foobar;
    }
?>

<?php
    public function x()
    {
                $foo = 'test';
                $bar = 1;
                return $foobar;
    }
?>

// What I'm looking for
<?php
    public function x()
    {
        $foo = 'test';
        $bar = 1;
        return $foobar;
    }
?>

```