razor icon indicating copy to clipboard operation
razor copied to clipboard

C# snippets don't work at end of Razor files

Open allisonchou opened this issue 2 years ago • 2 comments

Version: 33427.263.main

Trying to tab-tab to expand C# snippets at the end of a Razor file instead just inserts two tabs into the file: image

allisonchou avatar Feb 27 '23 21:02 allisonchou

Additional report: https://developercommunity.visualstudio.com/t/IntelliSense-for-Razor-Pages-malfunction/10203495

allisonchou avatar Feb 28 '23 21:02 allisonchou

Can confirm this is the issue. Thanks for pointing out the reason it's not working. Turned out it's not due to any @functions or any block but simply because it's at the end of the file.

Current workaround is to just leave an empty line at the end and it works.

datvm avatar Mar 02 '23 08:03 datvm