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

Automatic Tab #10

Open
ilGobbo00 opened this issue Jan 24, 2021 · 3 comments
Open

Automatic Tab #10

ilGobbo00 opened this issue Jan 24, 2021 · 3 comments

Comments

@ilGobbo00
Copy link

Hi, first of all thaks for what you have done, I really like it.
My request is: is it possible to add a kind of automated indentation when I format some text with your tool? It would be great.

Have a nice day, regards :)

@armhil
Copy link
Owner

armhil commented Apr 24, 2021

Hey @ilGobbo00 - can you give me a bit more details on this? What do you mean automated indentation? Are you formatting something like a json snippet?

@ilGobbo00
Copy link
Author

Sure! I mean, when I format some text, for example, if I write

void main(){
int a=0
if(a==0){
print("HelloWorld")
}
}

and I use your toll, I'd like to expect

void main(){
         int a=0
         if(a==0){
              print("HelloWorld")
         }
}

I don't remember what language I was using when I found this "issue", but maybe some common syntaxes could be recognised as tab needed

@armhil
Copy link
Owner

armhil commented Apr 24, 2021

Oh I see now. Can you help me understand how often you encounter this issue? The reason why I'm asking is, this requires introducing something like a smart-tabbing (detect if the code is tabbed already / or perhaps re-tab it ignoring the existing tabs). I'd also need to consider that not everyone uses the same amount of tabbing, so adding an option of how many spaces do you want your tabs to be would be also needed.

There are quite a few people using the tool now, I'd rather see if we get any upvotes to this.

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