Skip to content
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

Complete list of .editorconfig supported names #18342

Closed
angelsix opened this issue Mar 31, 2017 · 7 comments
Closed

Complete list of .editorconfig supported names #18342

angelsix opened this issue Mar 31, 2017 · 7 comments
Assignees
Milestone

Comments

@angelsix
Copy link

I'm struggling to find any kind of complete list of supported values that can be used in VS .editorconfig file

I see a few sparse lists like #15029 and #15065 but thats about it.

I learn more of whats available from just looking at a config you guys created here https://github.com/dotnet/roslyn/blob/master/.editorconfig

Is there no documentation on the editorconfig support that isn't just a bunch of pull requests that shows a complete up-to-date list of supported values?

@Pilchie
Copy link
Member

Pilchie commented Mar 31, 2017

https://docs.microsoft.com/en-us/visualstudio/ide/editorconfig-code-style-settings-reference is the documentation we already have for this, but it doesn't include formatting options, or naming styles yet.

@kuhlenh
Copy link

kuhlenh commented Mar 31, 2017

Yes this is on our radar, and we hope to get to it soon...

In the meantime, is there a specific rule you want to write that we can help you with?

@angelsix
Copy link
Author

I managed to look at existing configs to figure out what I needed through trial and error. So I'm on now. I discovered a bug with namespaces though #18345

@nvankesteren
Copy link

I have the same issue. I disabled ReSharper to not interfere with my EditorConfig rules, but even then -through lots of trial and error- I'm beginning to make sense of where the Visual Studio settings end and where Code Analyzer rules begin.

I made a fresh new project, and turned off all code analyzer rulesets explicity. Then I began building up a root EditorConfig file, rule by rule. Turns out, for example, to get 'dotnet_style_object_initializer' to work, I have to reenable the code analyzer ruleset rule 'IDE0017' and have it set to 'hidden' for the EditorConfig rule to do its thing in Visual Studio 2017... Is this by design?

@kintar0
Copy link

kintar0 commented Apr 21, 2017

@kuhlenh Is there a rule to replace consecutive empty lines with a single empty line?

@jmarolf
Copy link
Contributor

jmarolf commented Apr 21, 2017

I have to reenable the code analyzer ruleset rule 'IDE0017' and have it set to 'hidden' for the EditorConfig rule to do its thing in Visual Studio 2017... Is this by design?

@nvankesteren if you disable IDE rules you are disabling IDE functionality. This is by design

@kuhlenh
Copy link

kuhlenh commented Sep 21, 2017

Hey all, I updated the documentation this August here: https://docs.microsoft.com/en-us/visualstudio/ide/editorconfig-code-style-settings-reference. This is the complete official list for 15.3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants