-
Notifications
You must be signed in to change notification settings - Fork 91
Format code option does nothing #19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
It would help if you could show the file you are trying to format. |
I tried it on a sample php files from the twig library trying to mess up the indentation. Doesn't work with that. Below is the link to a sample gist. |
@aga5tya |
Do you have any other PHP formatter installed? |
Did you select the text before formatting? That is a feature that is currently not supported by this plugin. |
@felixfbecker I tried with a fresh copy of vs code with only intellisense plugin installed. Still does not work. Any specific logs i can share up? Are you on OSX ? Also FYI, I am on this version of PHP.
@madhed I tried both ways, not sure what is causing the issue. Let me check on a linux OS and see if it works there. |
Don't select the code :) |
@felixfbecker Thank you! That solved it. I could not get it done earlier since some portion or variable was always highlighted in mine. Also one more concern, formatting does not preserve empty lines. |
It currently is very opinionated about where you should have empty lines and where not |
Hi, first off thank you for the wonderful php intellisense plugin.
I tried the format code option, but doesn't seem to show any effect on the file. Is there anything i am missing out on ?
Operation System: OSX
VS Code: 1.5.3
PHP Intellisense: 0.0.9
The text was updated successfully, but these errors were encountered: