-
-
Notifications
You must be signed in to change notification settings - Fork 450
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
Configuration setting vueIndentScriptAndStyle is not working #1048
Comments
Reverted back to old version. |
Can you please reopen this issues? Changing versions doesn't fix it. It's still broken. |
Do you have prettier installed locally? If so it needs to be version 1.19 or above. This might be something we need to warn about. Prettier has a similar issue: prettier/prettier#6887 If that isn't the problem, please share your prettier output logs. You can access them by clicking the Prettier button in the bottom toolbar. |
Hi, prettier was not installed locally. It seems weird, I had to install node.js due to some other reason and reinstalled vscode and all the extensions and it is working correctly |
This is happening again:
OutputVS Code Version: Please note:
|
Please provide a sample repo I can use to reproduce this issue. See: https://github.com/prettier/prettier-vscode/wiki/Writing-a-Good-Issue#5-provide-a-sample-github-repo |
This issue has been automatically closed because there has been no response to our request for more information from the original author. Currently, there is not enough information provided for us to take action. Please reply and reopen this issue if you need additional assistance. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Summary
The configuration
"vueIndentScriptAndStyle": false
is not taking any effect on format of vue file.An update was added to the prettier automatically and codes were formatted in a way that I did not configure. So I checked the documentation and as per the link I found, added this to
.prettierrc
Github Repository to Reproduce Issue
There is no source code as it is the changes on the configuration file
.prettierrc
Link to a Github repo that can be used to reproduce the issue.
Steps To Reproduce:
Expected result
The expected result is style and script elements keep their indentations. Screenshot is attached
Actual result
style and script elements lose their indentations.
Additional information
Script Indent
![image](https://user-images.githubusercontent.com/40450822/68735742-91902400-0604-11ea-80cc-f6631e28cabe.png)
Even though removing this intending is nice & useful, the changes introduced in a project where large no: of people are working is messing up code-review and stuff. So it'd be a lot better if it could be controlled using configuration.
Style Indent
![image](https://user-images.githubusercontent.com/40450822/68735892-1f6c0f00-0605-11ea-8b5a-79eed05de23e.png)
I would prefer to keep both
script
andstyle
configuration different. Personally I want to have an indent on the style contents.VS Code Version:
v1.40.0
Prettier & Prettier Plugin Version:
v3.3.5
OS and version:
Ubutntu 16
Thank you for the amazing extension.
The text was updated successfully, but these errors were encountered: