mangobad.blogg.se

How change how many spaces in indent ms visual studio code
How change how many spaces in indent ms visual studio code





how change how many spaces in indent ms visual studio code

It does not remove any leading space otherwise your code would not be indented. The problem is just that vscode removes two trailing spaces. There is no “leading” whitespace involved in this problem. Perhaps you don’t agree with the solution or were expecting a more elaborate description, but to say that this does not describe the “correct” problem, honestly, I don’t even know how to respond to Exactly! And this is not currently possible because vs code treats both leading and trailing whitespace under the same option. 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.

how change how many spaces in indent ms visual studio code

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).







How change how many spaces in indent ms visual studio code