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

C# code formatting ignoring EditorConfig settings #32776

Closed
michaldudak opened this issue Aug 18, 2017 · 1 comment
Closed

C# code formatting ignoring EditorConfig settings #32776

michaldudak opened this issue Aug 18, 2017 · 1 comment

Comments

@michaldudak
Copy link

michaldudak commented Aug 18, 2017

Format selection / Format document commands seem to ignore the current EditorConfig settings when applied to a C# file.

I'm not sure if this repo is the right place for to log the issue. Please correct me if it should be elsewhere.

  • VSCode Version: Code 1.15.1 (41abd21, 2017-08-16T18:05:38.342Z)
  • OS Version: Windows_NT ia32 10.0.15063
  • Extensions:
Extension Author (truncated) Version
path-intellisense chr 1.4.2
gitignore cod 0.5.0
vscode-svgviewer css 1.4.2
vscode-eslint dba 1.2.11
githistory don 0.2.3
EditorConfig Edi 0.9.4
auto-rename-tag for 0.0.14
vscode-flatland-icon-theme geb 0.0.6
vscode-auto-open-markdown-preview hnw 0.0.4
icon-fonts idl 1.8.0
vscode-angular2-emmet jak 2.0.3
Angular2 joh 2.4.0
vscode-less mrm 0.6.3
csharp ms- 1.12.1
PowerShell ms- 1.4.1
typescript-javascript-grammar ms- 0.0.23
vs-keybindings ms- 0.1.7
sass-indented rob 1.4.1
autoimport ste 1.2.2

(2 theme extensions excluded)


Steps to Reproduce:

  1. Have the following .editorconfig file in a directory:
root = true

[*]
indent_style = tab
  1. Create a new C# file indented with tabs
  2. Run Format Document command on it
  3. See that tabs were converted to spaces.

One thing to note - "omnisharp.useEditorFormattingSettings" is set to true in my configuration.

Reproduces without extensions: No

@aeschli
Copy link
Contributor

aeschli commented Aug 21, 2017

This issue was moved to dotnet/vscode-csharp#1726

@aeschli aeschli closed this as completed Aug 21, 2017
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants