This Visual Studio Code extension works with markdown files in the docs-internal
repository. While you are displaying a markdown file for a help article, you can click a variable or a reusable in the markdown and then run the extension to open the variable or reusable file in a new tab.
You can also quickly copy a variable or a reusable. Handy for when you need to use the same variable more than once in a topic.
-
To open a reusable or variable file:
Either select some markdown containing a reusable or a variable, or just click inside the tag for a reusable or variable to place the cursor there, then press:
Mac: control + command + o
Windows: Ctrl + Alt + o
-
To copy a Liquid tag, such as the reference to a reusable or variable:
Click inside the tag to place the cursor there, then press:
Mac: control + command + c
Windows: Ctrl + Alt + c
Alternatively run the extension from the command palette by choosing Open reusable file or Copy the reusable at the cursor position.
To install this extension:
-
Download the
.vsix
package file from the https://github.com/hubwriter/open-reusables repository. -
Launch VS Code and display the extensions panel:
-
Click the ellipsis button (top right of the panel).
-
Choose Install from VSIX:
-
Browse to the
.vsix
file and click Install.