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

Override automatic type detection of line ending and indentation #28

Closed
Roald87 opened this issue Jun 27, 2020 · 0 comments
Closed

Override automatic type detection of line ending and indentation #28

Roald87 opened this issue Jun 27, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@Roald87
Copy link
Owner

Roald87 commented Jun 27, 2020

Currently if TcBlack will detects a single \r\n in a .TcPOU file it will use \r\n as a line ending. Similarly for the indentation: if it finds a single \t in a file it will use that one for the entire file.

It would be nice to override this behavior. For example in case there is a single \t in the file, but everywhere else four spaces are used.

Also this would allow for more indentation types then the current options of tabs or four spaces. Finally this would allow for an easy way to standardize the indentation across an entire project.

@Roald87 Roald87 added the enhancement New feature or request label Jun 27, 2020
@Roald87 Roald87 added this to the Version 0.2 milestone Jun 27, 2020
@Roald87 Roald87 self-assigned this Jul 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant