React Native Style InjectorA lightweight VS Code extension that automatically injects missing ✨ Features
🔧 How to Install (.vsix file)If the extension is not in the Marketplace, follow these steps:
✅ The extension will now be installed and ready to use. 🚀 How to Use
Press Ctrl + Shift + P to open the Command Palette Type: mathematica Copy Edit Inject Missing React Native Styles Press Enter ✅ This will automatically add the missing keys to your StyleSheet.create({}) block: const styles = StyleSheet.create({ container: {}, title: {} }); ⌨️ Optional: Add Keyboard Shortcut (Alt + S) To make it even faster, bind the command to a keyboard shortcut: 📌 One-Time Setup: Press: Ctrl + K Ctrl + S → opens the Keyboard Shortcuts window In the search bar, type: Inject Missing React Native Styles You’ll see the command from this extension Click the 🖉 pencil icon next to it Press Alt + S on your keyboard Press Enter to save the shortcut ✅ Now you can just press Alt + S in any .js, .jsx, or .tsx file to inject styles instantly. 💡 Example Before and After ✅ Before: ✅ After pressing Alt + S:const styles = StyleSheet.create({ box: {} }); 💬 Support or Feedback If you face any issues or have suggestions, open an issue on GitHub: 👉 https://github.com/devrahuljourney/rn-style-injector/issues 📁 Source Code GitHub: https://github.com/yourusername/rn-style-injector 🙌 Made by Rahul Built with ❤️ to save React Native developers from repetitive typing. |