bmewburn / vscode-intelephense

PHP intellisense for Visual Studio Code
https://intelephense.com
Other
1.63k stars 94 forks source link

Suggestion: Implement Auto-Indentation Rules #148

Open mikebronner opened 5 years ago

mikebronner commented 5 years ago

VSCode seems to rely on language providers to specify indentation rules. I've been having problems with indentation when pasting, and it appears not to behave as expected. Is this something that could be added to Intelephense? I would love to see configurable options, such as PSR1, PSR2, etc. standards.

Or if this has been implemented already, which file in the package specifies these rules? I would like to help improve them, if that would help. Thanks :)

robindrost commented 5 years ago

Is this what you are looking for? https://marketplace.visualstudio.com/items?itemName=Sophisticode.php-formatter

mikebronner commented 5 years ago

@robindrost No, I was referring to this article: https://mspoweruser.com/visual-studio-code-can-now-indent-code-automagically/ (Sorry I didn't post the link originally, I couldn't find it at the time.)

Developers of the so-called language extensions for Visual Studio Code can also add indentation rules to their extensions which will allow users to take advantage of this feature for another language like Python or Swift.