Mediaclip Library VS Code Extension
January 20, 2025 ยท View on GitHub
A Visual Studio Code extension that enables clickable links in XML files for custom package URLs.
Features
- Makes package URLs in XML files clickable
- Automatically opens the corresponding theme.xml files
- Supports the format:
$(package:packageName/path) - Works with XML files in your workspace
Example:
<defaultTheme url="$(package:mediaclip-hub-dev/tests)/themes/full-size-photo" />
Clicking on this URL will open tests/themes/full-size-photo/theme.xml in your workspace.
Installation
From VSIX
- Download the
.vsixfile from the releases - In VS Code, press
Ctrl+Shift+P(Windows/Linux) orCmd+Shift+P(Mac) - Type "Install from VSIX" and select the downloaded file
From Source
- Clone this repository
- Run
npm install - Run
npm run packageto create the VSIX file - Install using the steps above
Usage
- Open any XML file in VS Code
- URLs matching the pattern
$(package:packageName/path)will be automatically converted to clickable links - Click the link to open the corresponding xml file
Development
# Install dependencies
npm install
# Compile
npm run compile
# Watch for changes
npm run watch
# Create VSIX package
npm run vsix
Requirements
- Visual Studio Code version 1.60.0 or higher