Fast, accurate Banglish to Bengali transliteration for VS Code with Google API suggestions.

Features
✅ Google API Suggestions - Accurate transliteration like Chrome extension
✅ 5 Suggestions Popup - Pick the right word from multiple options
✅ Number Key Selection - Press 1-5 to quickly pick suggestions
✅ Auto-correct Mode - Optional - converts automatically on Space
✅ Dari Support - Dot (.) converts to Bengali dari (।) in auto mode
✅ Offline Fallback - Works without internet using local dictionary
✅ 600+ Word Dictionary - Common Bengali words for instant conversion
Installation
- Click the button above → Download
bangla-input-x.x.x.vsix
- Open VS Code
- Press
Cmd+Shift+P (Mac) or Ctrl+Shift+P (Windows/Linux)
- Type "Install from VSIX" and press Enter
- Select the downloaded
.vsix file
- Reload VS Code when prompted
🔧 Build from Source (Advanced)
# Clone the repository
git clone https://github.com/MuntasirMalek/bangla-input-vscode.git
cd bangla-input-vscode
# Install dependencies
npm install
# Package the extension
npm install -g @vscode/vsce
vsce package
# Install in VS Code
code --install-extension bangla-input-*.vsix
Keyboard Shortcuts
| Action |
Mac |
Windows/Linux |
Description |
| Convert |
Option+B |
Alt+B |
Convert selected text or word before cursor to Bengali |
| Toggle Auto Mode |
Option+Shift+B |
Alt+Shift+B |
Switch between Manual and Auto-correct mode |
| To Select - Press |
1 - 5 |
1 - 5 |
Press number key to select suggestion from popup |
How to Use
Default: Manual Mode (Recommended)
The extension is always ON and ready to convert. Just type in Banglish and convert when needed.
- Type in Banglish:
ami bangla likhchi
- Select the text (or just place cursor after a word)
- Press
Option+B → Pick from 5 Google suggestions
- Or press
1-5 to quickly select a suggestion
Optional: Auto-correct Mode
For automatic conversion on Space (may miss words when typing fast).
- Press
Option+Shift+B to enable → Status bar shows "বাংলা AUTO"
- Type in Banglish:
ami bangla likhchi
- Press
Space → automatically converts each word
- Dot (
.) automatically becomes dari (।)
- Press
Option+Shift+B again to go back to Manual mode
Status Bar Indicator
| Status |
Meaning |
| বাংলা |
Manual mode - use Option+B to convert |
| বাংলা AUTO |
Auto-correct mode - converts on Space |
Examples
| You type |
You get |
| ami |
আমি |
| tumi |
তুমি |
| bangla |
বাংলা |
| kemon acho |
কেমন আছো |
| dhonnobad |
ধন্যবাদ |
| bangladeshke |
বাংলাদেশকে |
| hello |
হ্যালো |
| . |
। (dari - in auto mode) |
How It Works
- Google API First - Fetches accurate suggestions from Google Input Tools
- Offline Fallback - Uses local phonetic rules if API fails
- Smart Dictionary - 600+ common words for instant conversion
Phonetic Rules
Based on Avro Keyboard patterns:
| English |
Bengali |
English |
Bengali |
| kh |
খ |
sh |
শ |
| gh |
ঘ |
ng |
ং |
| ch |
ছ |
th |
থ |
| jh |
ঝ |
dh |
ধ |
| ph |
ফ |
bh |
ভ |
Requirements
- VS Code 1.74 or higher
- Internet connection (for Google API suggestions, works offline with fallback)
Contributing
Contributions are welcome! Please:
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature)
- Commit your changes (
git commit -m 'Add amazing feature')
- Push to the branch (
git push origin feature/amazing-feature)
- Open a Pull Request
Adding Words to Dictionary
Edit transliterate.js and add words to the DICTIONARY object:
const DICTIONARY = {
'yourword': 'আপনার_শব্দ',
// ... more words
};
License
MIT License - see LICENSE file for details.
Credits
- Google Input Tools API for transliteration
- Avro Keyboard for phonetic patterns inspiration
Support
If you find any words that don't transliterate correctly, please open an issue with:
- The word you typed
- What you expected
- What you got
Made with ❤️ for Bengali speakers