In software engineering, two notoriously difficult things are cache invalidation and naming things. While we can't help with the first one, we've got your back for the second! 😉
A Visual Studio Code extension that helps developers write more readable code by suggesting meaningful variable and function names. Perfect for JavaScript and TypeScript projects.
Features
🤖 AI-powered variable and function name suggestions
✨ Instant inline suggestions without modifying your code
🎯 Context-aware naming based on value, usage, and function purpose
🔄 Multiple naming options for flexibility
💡 Supports JavaScript and TypeScript files
Installation
Open Visual Studio Code
Go to Extensions (Ctrl+Shift+X)
Search for "Name My Variable"
Click Install
How to Use Variable Naming
Write a variable assignment (e.g., const abc = 123)
Place your cursor on the line containing the variable assignment
Open the Command Palette (Ctrl+Shift+P)
Type and select "Generate variable name suggestions"
View suggested variable names as inline comments
How to Use Function Naming
Select the function code you want to rename.
Open the Command Palette (Ctrl+Shift+P)
Type and select "Generate function name suggestions"
View suggested function names as inline comments
For best results with function naming, select the entire function body including the function declaration and closing brackets.