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

format document ignores editor indentation settings #8

Open
Spongman opened this issue Sep 20, 2022 · 1 comment
Open

format document ignores editor indentation settings #8

Spongman opened this issue Sep 20, 2022 · 1 comment

Comments

@Spongman
Copy link

it always uses 2 spaces regardless of global editor setting.

@ahmadalli
Copy link
Owner

@Spongman Can you try with the latest version of the extension? Also, are you using space indentation or tab indentation? I'm asking because the logic of space indentation seems correct to me:

if (options.insertSpaces) {
const tabSize = options.tabSize || extensionConfig.tabSize;
const INDENTATION = new Array(tabSize).fill(' ').join('');
nginxBeautifier.modifyOptions({ INDENTATION });
} else {
nginxBeautifier.modifyOptions({ INDENTATION: '\t' });
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants