Skip to content
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

Incidentally inserting indents on all lines when inserting new lines with volar.format.initialIndent set to true in v1.1.1 #2394

Closed
Tanimodori opened this issue Feb 16, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@Tanimodori
Copy link

When inserting new lines in vue sfc script block, all lines get indented as shown below:

volar

Related settings.json part. Remove these lines will fix this issue.

  "volar.format.initialIndent": {
    "html": true,
    "javascript": true,
    "typescript": true
  },

Env: Windows 11, vscode 1.75.1, volar 1.1.1

@johnsoncodehk
Copy link
Member

johnsoncodehk commented Feb 16, 2023

You can disable editor.formatOnType to avoid this problem for now. Please note that removed volar.format.initialIndent will change the formatting result.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants