LangMorph - Code Conversion Extension for VS Code
🚀 LangMorph is a powerful VS Code extension that enables seamless code conversion between different programming languages. Whether you're switching between C++, Java, Python, JavaScript, TypeScript, or Rust, LangMorph provides an intuitive and efficient way to transform code snippets instantly.
✨ Features
✅ Convert Code Instantly – Supports bidirectional conversion between:
- C++ ↔ Java ↔ Python ↔ JavaScript ↔ TypeScript ↔ Rust
✅ Context-Aware Translation – Preserves logical structure and optimizes syntax.
✅ VS Code Activity Bar Integration – Access LangMorph easily from the sidebar.
✅ Inline Code Conversion – Convert selected code without leaving the editor.
✅ Multi-file Support – Convert entire files or specific functions.
✅ Command Palette Access – Quick access via Ctrl+Shift+P → Convert Code with LangMorph.
✅ Custom Configuration – Fine-tune indentation, syntax preferences, and more.
📌 Installation
From VS Code Marketplace
- Open VS Code.
- Go to the Extensions (Ctrl+Shift+X).
- Search for "LangMorph".
- Click Install.
Manual Installation
- Download the latest .vsix file from GitHub Releases.
- Open VS Code → Run:
code --install-extension langmorph.vsix
- Restart VS Code.
🚀 Usage
🔹 Convert Code Using the Activity Bar
- Open any code file.
- Click on the LangMorph icon in the Activity Bar.
- Choose the source and target languages.
- Click Convert and view the transformed code.
🔹 Convert Code Using the Command Palette
- Select the code snippet you want to convert.
- Open the Command Palette (Ctrl+Shift+P).
- Type "LangMorph".
- Choose the target language.
- The converted code will replace the selection.
🔹 Convert Code Using Context Menu
- Right-click on the selected code and choose "Convert with LangMorph".
⚙️ Configuration Options
Customize LangMorph settings in settings.json (Ctrl+, → Search for "LangMorph").
Example configuration:
{
"langmorph.defaultLanguage": "Python",
"langmorph.syntaxPreservation": true,
"langmorph.autoFormat": true
}
🛠️ Supported Languages
LangMorph currently supports conversion between:
- C
- C++
- Java
- Python
- JavaScript
- TypeScript
- Rust
- GoLang
- Kotlin
🚀 More languages coming soon!
🛠️ Development & Contribution
Want to improve LangMorph? Contribute to the project!
- Clone the repository:
git clone https://github.com/rounakkraaj-1744/langmorph.git
- Install dependencies:
npm install
- Open in VS Code and run F5 to test.
- Pull requests are welcome! 🎉
📧 Support & Feedback
Have issues or feature requests?
- Open an issue on GitHub.
- Contact me at coder.rounakk745@gmail.com.
🔹 Follow me on Twitter: @rounakk_745
🚀 What's Next?
✅ Improving the Design and UI of the extension.
✅ Adding features like code explanation and inbuilt AI prompts.
Stay tuned for updates! 🚀
🎉 Happy Coding with LangMorph! 🎉