-
Notifications
You must be signed in to change notification settings - Fork 29.2k
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
Extra indentation of def when prefixed with "private" #33939
Comments
The root cause for this lies within the indentation rules defined for ruby at I am not really sure how these should be changed to address the problem. |
Hi @rebornix @alexandrudima I did some indentation rules by myself: I created it for Crystal but is almost the same for Elixir, Ruby, Julia and other similar languages. In fact, currently I'm using Ruby indentation rules for Crystal
It's working a quite well now, but |
Oh, good news @juicemia did a fix for vscode-ruby here 👉 rubyide/vscode-ruby#206 it was easier than I thought 😅 |
Thank you @faustinoaq |
Steps to Reproduce:
autoIndent
is enabled.Reproduces without extensions: Yes
This happen by default in vscode, but other extensions like vscode-ruby and vscode-crystal-lang also have this issue:
The text was updated successfully, but these errors were encountered: