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

Tab-to-indent does not respect indentation settings #32

Open
Clashsoft opened this issue Sep 13, 2020 · 4 comments
Open

Tab-to-indent does not respect indentation settings #32

Clashsoft opened this issue Sep 13, 2020 · 4 comments
Labels
Milestone

Comments

@Clashsoft
Copy link

I'm in an environment where the tab size is set to 3 (via an .editorconfig file, but not sure if that matters). When pressing Tab to indent a line within a template, it always indents by 4 spaces. Interestingly, when pressing Shift-Tab to de-indent, it removes 3 spaces. The correct behaviour would be that Tab indents by 3 spaces as well.

recording

@bjansen
Copy link
Collaborator

bjansen commented Sep 13, 2020

Are you guys the same person or what? bjansen/pebble-intellij#48 😄

Thanks for reporting the problem, I should be able to fix it the same way.

@bjansen bjansen added the bug label Sep 13, 2020
@bjansen
Copy link
Collaborator

bjansen commented Sep 14, 2020

Huh, another one that seems to be already fixed in master, please try the build I mentioned in #31 (comment)

@bjansen bjansen added this to the 0.9 milestone Sep 14, 2020
@bjansen
Copy link
Collaborator

bjansen commented Sep 14, 2020

Actually it's not entirely fixed. If you configure a template data language (for example if you are generating a Java file), then it does not use Java indents. It always uses "Other File Types" indents, which seems to be wrong.

Otherwise, when no template data language is configured, "Other File Types" indents will always be used in .st and .stg files.

@Clashsoft
Copy link
Author

Can confirm that the problem is still there with language injection in the latest snapshot (#31 (comment))

@bjansen bjansen modified the milestones: 0.9, 0.10 Oct 16, 2021
@bjansen bjansen modified the milestones: 0.10, 0.11 Oct 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants