I'm using Notepad++ to write PHP and I find the way of not having same indent as before pressing Enter is rather disturbing. Let say I have a block of code like this :
foreach()
{
if()
{
}
}
If I move the pointer to the beginning of if() line, and press Enter, this line will have indentation like foreach() line
foreach()
{
if()
{
}
}
How can I tell Notepad++ to automatically indent code like this?
foreach()
{
if()
{
}
}