Open ManishJayaswal opened 8 years ago
Here's how Notepad++ works, I will follow the same behavior if you think it is reasonable:
@dotnet/roslyn-interactive
Shouldn't you be using the formatter or auto-indenter?
@mattwar This task is about csi, the command-line REPL. My understanding is all the IDE features are irrelevant here. @amcasey showed me something related to this in compiler layer (e.g. SyntaxNormalizer
, NormalizeWhitespace
method on SyntaxToken
, etc.), but we can't use them since they are manipulating syntax tree, which will not reflect back to existing text in console. I will look at their implementation and follow the same behavior.
Sounds good to me!
The auto-indenter mostly defers to the formatter, which is in Workspace layer.
Since this is CSI, you should probably do something simple. If we wanted to spend the time though, being Console is no impediment. You can do crazy stuff in console.
@amcasey