If possible, I’d like to be able to remove only leading or trailing whitespace This has been a problem for editing files that mix markdown documentation with another syntax for a while. Hi, I’ve noticed that there’s only the imTrailingWhitespace without a imLeadingWhitespace counterpart. The very first paragraph of the issue says: So, please… How could I be more clear than this? I’m not a native English speaker, though. Actually, this is useful not just for Elixir files.Īs I’ve said already, open a report that describes the correct problem and you’ll get the votes. ex), this wouldn’t be a problem with embedded markdown. If we have control over what kind of whitespace we can remove for each file extension (in this case. If you read the Github issue you’ll see that I talk about how in vs code we have an option to remove trailing whitespace, that actually removes trailing and leading whitespace. The markdown won’t be properly formatted because of the lack of whitespaces (line When exactly did you get the impression I was talking about leading whitespaces only? You can test this by enabling format on save/ trim on save in vscode, add documentation to a function, and then visualize it with elixir-ls (for example). Usually, you want to disable this option to work with markdown files so your markup doesn’t get butchered. This happens because whitespace works as line breaks and vscode only has one option that removes all whitespace (around). This will be part of the first line because the "line break" was removed when saved This would result in the documentation of the hello function to be on the same line like this: My function documentation markdown. If you mark the option to trim whitespace in vscode today, it will remove whitespace from the line start and line ends ( leading and trailing).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |