David Wengier
David Wengier
As per the screenshot above, the "surround with" that is available in .razor files, in Html, is actually the "Wrap With Div" command from Html. Alt+Shift+W is the default keybind....
Duplicate of https://github.com/dotnet/razor/issues/9426 but I like your pictures better, so I'm going to close that one.
This was fixed by Roslyn in https://github.com/dotnet/roslyn/pull/73606
This works now, via CPS in src\Microsoft.VisualStudio.ProjectSystem.VS.Implementation\CodeGenerators\WpfCodeGeneratorOverriderProvider.cs but probably needs to move to VsGeneratorsCacheService and be read from the registry
I think we should do a spike and remove space from being a commit character for any html completion item and see how it feels. At least we're in charge...
> If you remove space from being a commit character, you should make sure it dismisses the completion session It does!
@tthiery thanks for logging the issue. There are issues logged for collection/dictionary initializers being problematic/different to a plain .cs file formatting, but the others mentioned are new. Could you expand...
@tthiery We actually call this "Disco colors" 😁 Definitely not formatting related though, so would be best as a new issue.
At this stage a fix in 17.9 is unlikely I'm afraid.
@NormanM123 the render fragment issue is known, and tracked by a different issue. Could you log a separate issue for the other indentation issue you mentioned. Breaking things into separate...