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

Handle spaces and tabs #13

Closed
ChristofferHolmesland opened this issue Jul 5, 2021 · 2 comments
Closed

Handle spaces and tabs #13

ChristofferHolmesland opened this issue Jul 5, 2021 · 2 comments
Labels
bug Something isn't working enhancement New feature or request

Comments

@ChristofferHolmesland
Copy link
Owner

Suggestion:

  • Convert every tab character to 4 spaces
  • Let the user decide if they want to use tabs or spaces when they code. If the user presses tab then that can be converted to 4 spaces instead.

4 spaces will not work with every script, but it is a good starting point. A better solution would be to look at the code to find out how many spaces one tab should be.

@ChristofferHolmesland ChristofferHolmesland added bug Something isn't working enhancement New feature or request labels Jul 5, 2021
@ACuteWoof
Copy link
Contributor

Convert every tab character to 4 spaces

So, I managed to do that and to allow the tab key to register, which I will add to my fork after cleaning up the code.

@ChristofferHolmesland
Copy link
Owner Author

Current status: tabs are converted to spaces, and both space and tab count as one space character. We should let people use tabs but we need a settings page first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Development

No branches or pull requests

2 participants