-
Notifications
You must be signed in to change notification settings - Fork 419
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added an .editorconfig to dictate project formatting settings #74
Conversation
kproj files are indented by 2 spaces. I don't think anyone would ever edit those, but it should probably be added. |
I think corefx's .editorconfig makes sense. Maybe something like:
|
@khellang looks good to me. |
👍 thanks @khellang will update the PR shortly That url should also be quoted though, even if editorconfig files can handle invalid keys (part of its test suite). |
…g file to solution items
…l_newline setting :)
Updated, do we care about squashing and rebasing? |
nah! thanks! |
Added an .editorconfig to dictate project formatting settings
👍 |
@Mpdreamz didn't you also do an API (editor config nuget package) so that we can seed the roslyn formatter with those settings? |
I did, I just updated it today so that it includes a proper aspnetcore50 build in the nuget package. Just did a |
It wont actually seed once though, it will lookup everytime since thats the editorconfig way, i.e you might very well have different settings for Usually an editor opens a file and seeds that file with editorconfig settings, but we dont track editors opening and closing files on the server right? or do we? |
yeah - that's what I meant. we should have a thing (service?) which returns an OptionSet that applies to the current file. |
Every editor under the sun supports (or should!) http://editorconfig.org/
Visual studio has an extension: https://visualstudiogallery.msdn.microsoft.com/c8bccfe2-650c-4b42-bc5c-845e21f96328
This will force your editor settings to be changed when working on our project to the settings we dictate.
Editorconfig will leave your defaults alone, so when you switch back to a private project with no editorconfig file it will keep using your default settings there.
Ties into #70