How Do I Stop Visual Studio 2010 Editor From Making Code Hyperlinks?
I realize this is a somewhat dated question but when looking for a solution to programmatically update the date in a URL I was sending requests to, which VS2019 turning the string into a hyperlink was breaking, I just concatenated the "https://"
with the rest of the URL and was able to use the $@"string"
to achieve what I wanted to do. No need to toggle options or add extensions.
HttpWebRequest request = (HttpWebRequest)WebRequest.Create("https://" +
$@"url.com/startDate={DateTime.Now.ToString("yyyy-MM-dd")}");
Tools, Options, Text Editor, C# (or any other language), Enable single-click URL navigation.
Not sure about VS2010 but, in VS2008, you can open up Tools
, Options
, Text Editor
, <Your Language>
, General
, there's a Enable single-click URL navigation
checkbox that you should de-select.
With any luck, Microsoft won't have moved it too far from there in VS2010 :-)