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

Expose route to set formatting options #1300

Closed
anfomin opened this issue Dec 14, 2015 · 3 comments
Closed

Expose route to set formatting options #1300

anfomin opened this issue Dec 14, 2015 · 3 comments
Assignees
Milestone

Comments

@anfomin
Copy link

anfomin commented Dec 14, 2015

I've configured VS Code to always use tabs:

// Place your settings in this file to overwrite the default settings
{
    "editor.insertSpaces": false
}

But C# Format Code command (Shift+Alt+F) always replaces tabs with spaces. I'm using OS X El Capitan.

@dbaeumer dbaeumer added the bug Issue identified by VS Code Team member as probable bug label Dec 14, 2015
@dbaeumer dbaeumer added this to the Backlog milestone Dec 14, 2015
@dbaeumer dbaeumer added the c# label Dec 14, 2015
@jrieken jrieken modified the milestones: Backlog, Dec 2015 Dec 15, 2015
@jrieken
Copy link
Member

jrieken commented Dec 15, 2015

This is because OmniSharp doesn't support per request formatting options (https://github.com/OmniSharp/omnisharp-roslyn/blob/master/src/OmniSharp.Abstractions/Models/v1/FormatRangeRequest.cs#L6). Moving to OmniSharp for that.

@jrieken
Copy link
Member

jrieken commented Dec 15, 2015

@anfomin - Do workaround this, you can create an omnisharp.json with the config

@jrieken jrieken removed bug Issue identified by VS Code Team member as probable bug c# labels Dec 15, 2015
@jrieken jrieken changed the title Format does not use tabs indentation Expose route to set formatting options Dec 15, 2015
@jrieken
Copy link
Member

jrieken commented Dec 15, 2015

This issue was moved to OmniSharp/omnisharp-roslyn#366

@jrieken jrieken closed this as completed Dec 15, 2015
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 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

3 participants