vscode-rust
vscode-rust copied to clipboard
Improve the code style
I have no idea why the code is flooded with newlines. It simply fits less in the screen and makes it hard to read.
For example, imports should be organized in one block, or split as internal imports vs external ones. You break each import with two newlines.
Changing this would require a huge commit. I would like to have a place for discussion before the change.
It allows to easily read code without any distraction from other elements. I find it easily to read.
@ishitatsuyuki, Each function is small enough to fit within a screen.
What about the imports flooding over twice of my editor height?
If you're coding on a big monitor, consider increasing the text size.
How do you suggest to write imports in order to make it easier to add/remove imports for VCS?
Do not flood with redundant blank lines. This applies to imports and class fields.
Blank lines between blocks (for {}, if {}) is acceptable depending on your preferred code style.
I will re-work my code and write code guidelines. This will be after I have done what I am planning for this release.