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

Format ignoring indent preference #1632

Closed
mohd-akram opened this issue Jul 12, 2017 · 2 comments
Closed

Format ignoring indent preference #1632

mohd-akram opened this issue Jul 12, 2017 · 2 comments

Comments

@mohd-akram
Copy link

Environment data

dotnet --info output:

.NET Command Line Tools (1.0.4)

Product Information:
 Version:            1.0.4
 Commit SHA-1 hash:  af1e6684fd

Runtime Environment:
 OS Name:     Mac OS X
 OS Version:  10.12
 OS Platform: Darwin
 RID:         osx.10.12-x64
 Base Path:   /usr/local/share/dotnet/sdk/1.0.4

VS Code version: 1.14.0
C# Extension version: 1.11.0

Steps to reproduce

Run "Format Document" command on .cs file.

Expected behavior

File will be formatted according to indentation preference (eg. Spaces: 4) in Status Bar.

Actual behavior

File is formatted with global editor.tabSize indentation setting.

@mohd-akram
Copy link
Author

I am now aware that OmniSharp can't change formatting options on the fly. Is there a way for it to use the [csharp] settings at least?

@DustinCampbell
Copy link
Member

This is a duplicate of #1574

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

2 participants