Markdown Link is a Visual Studio Code extension that converts the selected text into a Markdown link. The link's file name is generated by replacing spaces and special characters with underscores and reducing multiple consecutive underscores to a single underscore.
- Converts selected text to a Markdown link.
- File name rules:
- Spaces and special characters are replaced with underscores.
- Multiple consecutive underscores are reduced to a single underscore.
- Select the text you want to convert to a Markdown link.
- Open the Command Palette (
Ctrl+Shift+P
orCmd+Shift+P
on macOS). - Run the command
Convert to Markdown Link
. - The selected text will be replaced with a Markdown link.
- Download the
.vsix
file from the Releases page. - Open Visual Studio Code.
- Open the Command Palette (
Ctrl+Shift+P
orCmd+Shift+P
on macOS). - Select
Extensions: Install from VSIX...
. - Select the downloaded
.vsix
file.
To set up the extension for development:
-
Clone the repository.
-
Navigate to the project directory.
-
Install dependencies:
npm install
-
Compile the TypeScript code:
npm run compile
-
Open the project in Visual Studio Code.
-
Press
F5
to start the extension in a new VS Code window.
Contributions are welcome! Please open an issue or submit a pull request on GitHub.
This project is licensed under the MIT License. See the LICENSE file for details.