dotnet / interactive

.NET Interactive combines the power of .NET with many other languages to create notebooks, REPLs, and embedded coding experiences. Share code, explore data, write, and learn across your apps in ways you couldn't before.
MIT License
2.91k stars 389 forks source link

Formatting of C# Code inside code cell #1666

Open vabka opened 3 years ago

vabka commented 3 years ago

Is your feature request related to a problem? Please describe. I want to be able to use code-formatting and refactoring features from other extensions in VS Code Currently, when i call "Format Document" i get an "There is no formatter for 'dotnet-interactive.csharp' file installed"

Describe the solution you'd like Code cell acting like plain file.


There is an issue from omnisharp-vscode: https://github.com/OmniSharp/omnisharp-vscode/issues/4804

heartacker commented 2 years ago

we want it; and python is supported image

mika76 commented 2 years ago

This would be great - especially useful when writing lots of linq code

mika76 commented 11 months ago

I'd like to bump this (@jonsequitur maybe?) - I know it's not some crazy productivity feature or something, but man it would be so useful. I also wonder if it wouldn't be pretty easy to implement just using the C# extensions formatter?

jonsequitur commented 11 months ago

I agree it would be very useful. I've added the help wanted tag because the team won't have time for it any time soon but we'd be happy to help someone prepare a PR.

heartacker commented 5 months ago

https://github.com/microsoft/vscode/issues/212381#issuecomment-2116160919