Hashtagify VS Code Extension
Adds a command that turns the selected text into a sequence of hashtags, for example:
- word one, word two, word three -> #WordOne #WordTwo #WordThree
- one two three -> #One #Two #Three
Demo
Features
- Convert selected text into hashtags.
- Supports multiple words and phrases.
- Easy to use with the command palette.
Usage
- Select a string of words (e.g.,
geo map, urban art ).
- Press
Ctrl + Shift + P (or Cmd + Shift + P on Mac) to open the command palette.
- Run the command by searching for
Hashtagify Word List .
- The selected text should transform into hashtags (e.g.,
#GeoMap #UrbanArt ).
Development
Prerequisites
- Node.js
- Visual Studio Code
Setup
- Clone the repository.
- Run
npm install to install dependencies.
- Open the project in Visual Studio Code.
Test and Publish
- Press
F5 in VS Code to run the extension in a new Extension Development Host window.
- Open a file in the new development environment and follow the steps in usage to test.
- Package the extension into a
.vsix file: vsce package
- Upload to https://marketplace.visualstudio.com/manage/
License
This project is licensed under the MIT License.
| |