An open API service indexing awesome lists of open source software.

https://github.com/usernamehw/vscode-autolink

Make exernal links from editor text.
https://github.com/usernamehw/vscode-autolink

external link reference url vscode-extension

Last synced: 11 months ago
JSON representation

Make exernal links from editor text.

Awesome Lists containing this project

README

          

![Version](https://img.shields.io/visual-studio-marketplace/v/usernamehw.autolink)
![Installs](https://img.shields.io/visual-studio-marketplace/i/usernamehw.autolink)
![Rating](https://img.shields.io/visual-studio-marketplace/r/usernamehw.autolink)

Match links in document with external location.

## Example

```js
"autolink.queries": [
{
"linkPattern": "github#(\\d{1,6})",// RegExp. Will match `github#202` text
"linkText": "https://github.com/Microsoft/vscode/issues/${0}",// will replace `${0}` with matched group
},
{
"linkPattern": "this#(\\d{1,6})",// RegExp. Will redirect `this#1` to `https://github.com/usernamehw/vscode-autolink/issues/1`
// will replace `${0}` with matched group
// will replace `${workspaceFolderBasename}` with opened folder basename
"linkText": "https://github.com/usernamehw/${workspaceFolderBasename}/issues/${0}",
},
],
```

![demo.gif](img/demo.gif)

## Settings (1)

|Setting|Default|Description|
|-|-|-|
|autolink.queries|\[\]|Make links from text in the document.|