Changes in smart indentation
I have made some improvements to the smart indentation feature in VS.Php. Smart indentation can be enabled here:
I tried to address a number of issues with the previous version where things didn't align well. In many cases things don't align well if there are syntax errors so it is difficult to do it then.
One of the things I do as I write code is Ctrl+K Ctrl+D, this will auto indent the entire document. You can also do Ctrl+K Ctrl+F if you want to auto indent selected text.
In the new build, <?php blocks are no longer push all the way to the left. They stay where they are and their content will be aligned to their indentation.
This will hopefully work when you have a lot of HTML and PHP mixed together and you use indentation to keep things readable.
VS.Php still does not auto indent HTML content, so it simply use block indenting when outside PHP content.
Give it a try and let me know if you see some odd behavior.