Code auto formatting
This feature lets you change the indentation of your code based on the current code structure. You can activate code formatting manually by using the following key shortcut:
- Ctrl+K Ctrl+D - Formats the whole document
- Ctrl+K Ctrl+F - Formats the selection. If no selection, formats the current line the cursor is in.
Automatic formatting
VS.Php supports various ways to automatically auto format your code. Please note that this options are fully configurable in the Php's text editor properties. The following will trigger auto formatting:
- Closing a php section with ?>
- Closing a code block section using }
- Ending a statement with ;
- Closing a parameter list using )
- Closing a string using " or '
- Pasting code into your file will format the pasted code

