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

EditorConfig not working under Visual Studio 2019 #34751

Closed
Ragowit opened this issue Apr 4, 2019 · 2 comments
Closed

EditorConfig not working under Visual Studio 2019 #34751

Ragowit opened this issue Apr 4, 2019 · 2 comments
Labels
Area-IDE Question Resolution-Answered The question has been answered

Comments

@Ragowit
Copy link

Ragowit commented Apr 4, 2019

Version Used:
Microsoft Visual Studio Professional 2019
Version 16.0.0
Microsoft .NET Framework
Version 4.7.03056

Steps to Reproduce:

  1. Create .editorconfig at solution level
  2. Add Rules
  3. Open .cs file and add new method.
  4. Apply autoformatting (CTRL + K, CTRL + D)

Expected Behavior:
Formatting is applied. Methods where formatting isn't applied are displayed as errors.

Actual Behavior:
Nothing happens.

Other Information:
This was working fine for me in Visual Studio Professional 2017.

@sharwell
Copy link
Member

sharwell commented Apr 8, 2019

The experimental Code Cleanup on Format Document feature was removed for Visual Studio 2019. The new Code Cleanup feature is available via the broom icon at the bottom of editor windows. I was sure there was a duplicate issue for this already, but I'm having trouble finding it.

@metoule
Copy link

metoule commented Jun 7, 2019

Does that mean we have to use both features on the same document to have the same behavior as in VS2017? Or does the Code Cleanup feature also triggers the Format Document feature?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-IDE Question Resolution-Answered The question has been answered
Projects
None yet
Development

No branches or pull requests

4 participants