Document Format in Insert View ExternalSource Directive

I have a problem I recently noticed in visual studio (2015 Enterprise) where when I work on a View and I format the document using the "Document Document" functionality, either with a keyboard shortcut or using the edit menu, this visual studio will add to one or more external source directives throughout the document, for example:

#End ExternalSource

#ExternalSource ("C:\ProjectLocation\CurrentView.vbhtml",12)

      

The End statement also appears before the start, even if there is no other start above it. This is usually not the same as reading the line number.

I'm guessing it has something to do with having the code in the view (using Razor), but is there a way to prevent this when I format the view as it is frustrating and it doesn't even format the document correctly!

+3


source to share





All Articles