Skip to content

kubex-ecosystem/formatpilot-vscode

Repository files navigation

FormatPilot VS Code Extension

πŸš€ Convert text between multiple formats (Markdown ↔ LinkedIn ↔ HTML) directly in VS Code!


VS Code Marketplace License: MIT TypeScript

Simple and fast text conversion between Markdown, LinkedIn, and HTML formats. No external dependencies, pure TypeScript implementation!

✨ Features

  • πŸ”„ Multiple Conversions: Markdown β†’ LinkedIn, Markdown β†’ HTML, HTML β†’ Markdown
  • ⚑ Lightning Fast: Native TypeScript implementation, no Python dependencies
  • 🎯 Context Menu: Right-click on selected text for quick conversion
  • πŸ“± LinkedIn Optimized: Proper formatting for LinkedIn posts with character warnings
  • 🌐 HTML Ready: Clean HTML output with proper tags
  • πŸ“ Markdown Compatible: Converts HTML back to clean Markdown

πŸš€ Installation

  1. Open VS Code
  2. Go to Extensions (Ctrl+Shift+X)
  3. Search for "FormatPilot"
  4. Click Install
  5. Start converting text!

🎯 How to Use

Quick Conversion

  1. Select any text in your editor
  2. Right-click β†’ "πŸš€ FormatPilot" β†’ Choose conversion type
  3. Done! Your text is converted instantly

Available Commands

  • FormatPilot: Convert Text - Shows conversion options
  • FormatPilot: Convert to LinkedIn - Direct Markdown β†’ LinkedIn
  • FormatPilot: Convert to HTML - Direct Markdown β†’ HTML
  • FormatPilot: Convert to Markdown - Direct HTML β†’ Markdown

πŸ“‹ Examples

Markdown β†’ LinkedIn

Input:

# My Great Post
This is **important** text with *emphasis*.
- Point 1
- Point 2
Check out [my website](https://example.com)

Output:

MY GREAT POST
This is IMPORTANT text with emphasis.
β€’ Point 1
β€’ Point 2
Check out my website (https://example.com)

Markdown β†’ HTML

Input:

## Header
**Bold** and *italic* text
- List item

Output:

<h2>Header</h2>
<p><strong>Bold</strong> and <em>italic</em> text</p>
<ul>
  <li>List item</li>
</ul>

HTML β†’ Markdown

Input:

<h1>Title</h1>
<p><strong>Bold</strong> text</p>
<ul><li>Item</li></ul>

Output:

# Title
**Bold** text
- Item

πŸ”§ Features Detail

LinkedIn Conversion

  • Removes Markdown formatting (LinkedIn doesn't support it)
  • Converts bold text to UPPERCASE
  • Converts lists to bullet points (β€’)
  • Formats links as "text (url)"
  • Warns if text exceeds 3000 characters

HTML Conversion

  • Preserves all formatting as HTML tags
  • Handles nested lists properly
  • Converts code blocks to <pre><code>
  • Maintains link structure

Markdown Conversion

  • Cleans HTML tags back to Markdown syntax
  • Handles complex nested structures
  • Preserves links and images
  • Decodes HTML entities

πŸ› οΈ Development

Build from Source

git clone https://github.com/rafa-mori/formatpilot-vscode.git
cd formatpilot-vscode
npm install
npm run compile

Package Extension

npm run package

🀝 Contributing

Contributions are welcome! Please feel free to submit issues or pull requests.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/new-feature)
  3. Commit your changes (git commit -am 'Add new feature')
  4. Push to the branch (git push origin feature/new-feature)
  5. Open a Pull Request

πŸ“„ License

MIT Β© Rafael Mori

πŸ’Œ Contact


Made with ❀️ by Rafael Mori

About

πŸš€ Convert text between multiple formats (Markdown ↔ LinkedIn ↔ HTML) directly in VS Code!

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Contributors