Omnisharp-roslyn: Make it possible to "auto-fix" documents

Created on 4 Jun 2019  路  4Comments  路  Source: OmniSharp/omnisharp-roslyn

Currently, omnisharp is not supporting "auto-fix" functionality to VSCode.

Implementing this functionality would lead to a very efficient way to produce clean code.

One possibility would be to add an action "omnisharp: fix document", have a setting in the vscode user json file like

"omnisharp.autofixactions": [
    "RemoveUnusedUsings",
    "SimplifyNames",
   ...
]
feature request

Most helpful comment

Currently working on this, may be few weeks before i push PR though.

All 4 comments

This will be possible once #1526 is merged. We'll then be able to add a fix endpoint that fixes everything according to .editorconfig settings.

Perfect, thanks!

Currently working on this, may be few weeks before i push PR though.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Nazeehe picture Nazeehe  路  3Comments

patilarpith picture patilarpith  路  3Comments

worming004 picture worming004  路  6Comments

nickspoons picture nickspoons  路  4Comments

natemcmaster picture natemcmaster  路  5Comments