You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a function in this mode to apply it to the current file. It could perhaps be used so that we don't have to reinvent the wheel, but there are two problems with that. First is that it affects the whole file, not just the current position, and the second is that it doesn't work at all if the file doesn't currently have valid syntax. These together make it suitable to format existing code, but not to format code as it is written.
e.g. following code when indent with emacs builtin ruby-mode (without LSP enabled), it will indent like this:
but, if switch to crystal-mode, it indent like this:
But, if remove the those comment from line ending, it indent correct again.
The text was updated successfully, but these errors were encountered: