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

It keeps increasing indent when I wrap lines in script block #2396

Closed
otomad opened this issue Feb 16, 2023 · 1 comment
Closed

It keeps increasing indent when I wrap lines in script block #2396

otomad opened this issue Feb 16, 2023 · 1 comment
Labels
duplicate This issue or pull request already exists

Comments

@otomad
Copy link

otomad commented Feb 16, 2023

When volar.format.initialIndent is set to true and editor.formatOnType is set to true, like:

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

Then when I wrap lines in script block, it keeps increasing indentation. Setting them false will work properly, but this will not match our code style.

As shown in the video:

20230216_202126.mp4
@johnsoncodehk
Copy link
Member

Duplicate of #2394

@johnsoncodehk johnsoncodehk marked this as a duplicate of #2394 Feb 16, 2023
@johnsoncodehk johnsoncodehk closed this as not planned Won't fix, can't repro, duplicate, stale Feb 16, 2023
@johnsoncodehk johnsoncodehk added the duplicate This issue or pull request already exists label Feb 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants