mhutch / MonoDevelop.MSBuildEditor

Improved MSBuild editing support
Other
215 stars 26 forks source link

Preselect closing element tag #149

Open KirillOsenkov opened 7 months ago

KirillOsenkov commented 7 months ago

There's some friction around adding end element tags:

image

would be nice to preselect </Target> here

KirillOsenkov commented 7 months ago

It works great if you overtype the closing > in <Target>, but if you just move the caret to the right of it using the right arrow, it doesn't autocomplete </Target> and there's some ceremony in typing it in properly

mhutch commented 7 months ago

The problem of the comment item being committed but the / should be fixed by #153. Was there any other reason you wanted to preselect the closing tag?

KirillOsenkov commented 7 months ago

yes because when the tag is unclosed I always want to close it first by typing </Foo>

see how this works in various editors in VS, for xml, xaml or html

KirillOsenkov commented 7 months ago

sometimes pressing Enter after an unclosed open tag inserts the closing tag automatically, perhaps this should happen here too