This repository has been archived by the owner on Feb 19, 2019. It is now read-only.
[Enhancement] Add EditorConfig file denoting coding style. #123
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The
.editorconfig
file defines indentation styles for all the PowerShell files.EditorConfig is a project that defines coding style and makes editors format the code in a consistent way, especially the indentation. It's available for many editors and IDEs, including Notepad++, Visual Studio. Many projects have taken advantages of it, including jQuery, Modernizr.
I made this pull request because the Chocolatey code is very clean now, and I wish people can utilize this file to keep the coding style consistent when they contribute code.
According to the tutorial video, I think Notepad++ may be used a lot in this project? The EditorConfig Notepad++ plugin is available on the plugin manager. And also, there is a Visual Studio plugin has its binary installer on the Visual Studio Galley, so it's very easy to install.
What do you think about this?