Edit

Share via


Display URLs as Links in the Editor

You can choose to have the Code Editor treat Uniform Resource Locators (URLs) in your code as active links. When you use this feature, URLs:

  • Appear underlined.

  • Display a ToolTip when you hover over them.

  • Attempt to open the website indicated when you Ctrl+click on the link. By default, the website is displayed in the internal web browser.

  1. Open the Tools > Options pane, and expand the All Settings > Languages section.

  2. Expand the language section you're using (such as C# or Visual Basic) and then expand the General section.

  3. Select the Enable single-click URL navigation checkbox.

You can also configure URLs as links for all supported programming languages. Expand the All Settings > Languages > Defaults > General section and select or clear the Enable single-click URL navigation option.

  1. On the Visual Studio menu bar, select Tools > Options.

  2. In the Options dialog, expand the Text Editor section.

  3. Expand the language section you're using (such as C# or Visual Basic) and then expand the General section.

  4. Select the Enable single-click URL navigation checkbox, and then select OK.

You can also configure URLs as links for all supported programming languages. Expand the Text Editor > All Languages > General section and select the Enable single-click URL navigation option.