-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
HTML auto formatting using spaces instead of tabs #1551
Comments
From @vscodebot[bot] on July 31, 2018 7:36 (Experimental duplicate detection) |
What is the tab/spaces setting for your editor? Check out the lower right corner. To sync settings in |
From @alan-agius4 on July 31, 2018 10:50 Hi @aeschli my setting is If I format the document, I can see that spaced are being changed to tabs but not for |
reproduced on the https://beautifier.io/ playground:
format the folloing code
|
@aeschli @alan-agius4 The examples using The other example, on the other hand, using |
I'm seeing a similar issue with wrap_attributes: force and tab indention. DescriptionInputThe code looked like this before beautification:
Current OutputThe code actually looked like this after beautification:
Expected OutputThe code should have looked like this after beautification:
EnvironmentBrowser User Agent: Language Selected: SettingsExample: {
"indent_size": "1",
"indent_char": "\t",
"max_preserve_newlines": "5",
"preserve_newlines": true,
"keep_array_indentation": false,
"break_chained_methods": false,
"indent_scripts": "normal",
"brace_style": "collapse",
"space_before_conditional": true,
"unescape_strings": false,
"jslint_happy": false,
"end_with_newline": false,
"wrap_line_length": "40",
"indent_inner_html": false,
"comma_first": false,
"e4x": false,
"wrap_attributes": "force"
} In this case, should the wrap not be using a tab character rather than a space? Happy to file a new issue, if it's a separate issue from this one. |
@aeschli @alan-agius4 @cpswaim Please have look and if you have people who are willing to try it out that'd be great. |
Just had the opportunity to test. Manually upgraded js-beautify (to 1.9.0) in the sublime plugin I am using, and initial tests look great. Thank you! |
From @alan-agius4 on July 31, 2018 7:36
Steps to Reproduce:
"html.format.wrapAttributes": "force-aligned"
or"html.format.wrapAttributes": force-expand-multiline
in the workspace settingsindent_style
to tabs in.editorconfig
for htmlI would expect that tabs are using instead of spaced.
Does this issue occur when all extensions are disabled?: Yes
Copied from original issue: microsoft/vscode#55423
The text was updated successfully, but these errors were encountered: