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

Decompilation feature does not respect editor line endings #28276

Open
gundermanc opened this issue Jul 3, 2018 · 2 comments
Open

Decompilation feature does not respect editor line endings #28276

gundermanc opened this issue Jul 3, 2018 · 2 comments
Labels
Area-IDE Feature Request IDE-Formatter Code formatter and/or smart indent
Milestone

Comments

@gundermanc
Copy link
Member

Version Used:
Visual Studio 2017 15.8 Preview 3.0

Steps to Reproduce:

  1. Create a C# project with a Console.WriteLine()
  2. Enable decompilation feature in Tools > Options
  3. Set caret on Console and Press F12

Expected Behavior:
File is decompiled using user's line endings preference.

Actual Behavior:
File is decompiled using tabs.

@jinujoseph
Copy link
Contributor

related to #25303

@siegfriedpammer
Copy link
Contributor

I think this can be closed. The source code produced by the decompiler is reformatted using Formatter.FormatAsync. See

// Apply formatting rules
document = await Formatter.FormatAsync(
document, SpecializedCollections.SingletonEnumerable(node.FullSpan),
options: null, Formatter.GetDefaultFormattingRules(document), cancellationToken).ConfigureAwait(false);

@CyrusNajmabadi CyrusNajmabadi added the IDE-Formatter Code formatter and/or smart indent label Feb 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-IDE Feature Request IDE-Formatter Code formatter and/or smart indent
Projects
None yet
Development

No branches or pull requests

4 participants