Opens a URL with placeholder substitution, using the command "Open URL: Open URL" or the editor context menu.
Currently, the only placeholder supported is for the current selection, but others may be supported in the future, such as the current file.
For example, to open Qt5 documentation for the selected class name, define:
"open-url.url": "https://doc.qt.io/qt-5/${TM_SELECTED_TEXT/downcase/}.html"
You can install the latest version of the extension via the Visual Studio Marketplace here.
The source code is available on GitHub here.
open-url.url
(default:https://www.google.com/search?q=${TM_SELECTED_TEXT}
)
The URL to open. ${TM_SELECTED_TEXT}
will be replaced by the current selection. Uppercase and lowercase transformations are also supported. e.g. ${TM_SELECTED_TEXT/downcase/}
.
open-url.notification
(default:none
)
How to show what URL is being opened. Valid values are none
, popup
or statusBar
.
Icon made by https://www.freepik.com from https://www.flaticon.com.