I have an old VB.Net project where I'm contributor and for compatibility reasons I need to keep underscore continuation characters where they are at code but Visual Studio 2017 is removing those.
For example:
Cache.Add(
"cacheErr", _
objArray, _
Nothing, _
Date.Today.AddHours(1), _
System.Web.Caching.Cache.NoSlidingExpiration, _
System.Web.Caching.CacheItemPriority.Normal, _
Nothing)
When I open the file and change some of code the underscores are removed like this:
Cache.Add(
"cacheErrDispensacion",
objArray,
Nothing,
Date.Today.AddHours(1),
System.Web.Caching.Cache.NoSlidingExpiration,
System.Web.Caching.CacheItemPriority.Normal,
Nothing)
As a result, this can not compile at older versions of visual studio.
I would like to know if there is a configuration to prevent this behaviour with Visual Studio 2017.